uipopovercontroller

Can I remove the arrow in the popover view?

早过忘川 提交于 2019-12-21 02:01:04
问题 I am asked to removed the arrow of the popover view. Is that violating human interface guidelines ? Is it wise to show a popover inside another popover ? If it is not violating human interface guidelines how to do that ? 回答1: Hiding the popover arrow or showing one popover inside another does not sound very wise. I’m not sure if this is explicitly forbidden by the HIG, but it’s a usability drawback anyway. If you insisted you could draw your own arrowless popover or try to mask the arrow

Animate popoverContentsize when pushing navigation view controller in popover on iPad

北慕城南 提交于 2019-12-20 18:44:23
问题 How do I get my UIPopoverController to animate its size when its contained UINavigationController pushes a new controller? I have a UIPopover being displayed from a UIBarButtonItem in my iPad app. It contains a UINavigationViewController , which has a sort of settings window as its root view controller. The settings window is a subclass of UITableViewController (style set to grouped), and tapping any of its cells pushes different "chooser" view controllers on the nav controller that are also

Change Action sheet popover arrow in iOS8

試著忘記壹切 提交于 2019-12-20 17:26:33
问题 i'm using UIAlertController . But on iPad with iOS 8, actionSheet show with popover arrow. Any ideas to hide that arrow? Here is my code: UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"this is alert controller" message:@"yeah" preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:NSLocalizedString(@"Cancel", @"Cancel action") style:UIAlertActionStyleCancel handler:^(UIAlertAction *action) { NSLog(@

UIPopoverController, Xcode 6, IOS 8 using Swift

孤者浪人 提交于 2019-12-20 10:58:31
问题 I'm having some trouble getting a UIPopover to appear using swift. The code that is commented out works fine in Objective-C, but doesn't work using Swift. When I tap the + in my view controller I do get the "click" in my debugger, however no popover appears. class PlayerInformationTableViewController: UITableViewController, NSFetchedResultsControllerDelegate, UIPopoverControllerDelegate { @IBOutlet weak var addBarButtonItem: UIBarButtonItem! var playerInformationViewController =

Determine if a view is inside of a Popover view

荒凉一梦 提交于 2019-12-20 10:29:01
问题 We have common views that we use in our application in many locations inside of UINavigationControllers . Occasionally the UINavigationController s are inside of popover views. Now the views we put into the nav controllers modify their navigation controller's toolbar buttons and, in some cases, use custom buttons that we've created. We need to be able to figure out from the UIViewcontroller itself if the view is inside of a popoverview so we can display the correctly colored buttons. We can

How to make UIPopoverController keep same position after rotating?

三世轮回 提交于 2019-12-20 08:32:14
问题 I can't keep popover the same position on the screen after rotation. Is there any good way to do that, because just setting some frame to popover works terrible after rotating. popover.frame = CGRectMake(someFrame); After rotation popover looks fine only if it is in the center of the screen. 回答1: Apple has a Q&A on exactly this issue. You can find the details here: Technical Q&A QA1694 Handling Popover Controllers During Orientation Changes Basically, the technique explains that in your view

UIImagePickerController in UIPopoverController - location not working

谁说我不能喝 提交于 2019-12-20 04:53:45
问题 In an iPad app I'm writing I have button in a static table cell that launches an image picker inside a popover. I want the popover's arrow to point at the button that launched the popover. Right now, when I tap the button it doesn't. It throws the popover on screen (with the working image picker) but the arrow either points to the top of the screen or kind of anywhere else (can't figure out if it's random or not--see below). The tableview that holds the static cell that contains the button

UIPopoverController not presenting in iPad iOS 8

社会主义新天地 提交于 2019-12-19 06:28:49
问题 I am using UIPopoverController in iOS 8 iPad for imagepicker .Its working in iOS 7 but not in iOS 8.The popover is not displayed and popoverControllerDidDismissPopover is called immediately.Please suggest a solution.. Here the code am using: UIPopoverController *popVC= [[UIPopoverController alloc] initWithContentViewController:pickerController]; _pop = popVC; _pop.delegate = self; [_pop presentPopoverFromRect:attachBtnFrame inView:_sender permittedArrowDirections:UIPopoverArrowDirectionAny

iOS UIPopoverController transparency / alpha

假如想象 提交于 2019-12-19 03:55:16
问题 I'm making an iPad app where the client wants a popoverview with transparency (alpha). They gave me an example app, screenshot can be found here I've read that UIPopoverController is the worst thing to customize as there are only a few properties to set. LINK & LINK I tried it with lowering a subview's alpha but then the content of the view gets transparant too. Am I missing an option, or doing something wrong to get this right? Also, I have little experience with subclassing, so any

iOS UIPopoverController transparency / alpha

懵懂的女人 提交于 2019-12-19 03:55:09
问题 I'm making an iPad app where the client wants a popoverview with transparency (alpha). They gave me an example app, screenshot can be found here I've read that UIPopoverController is the worst thing to customize as there are only a few properties to set. LINK & LINK I tried it with lowering a subview's alpha but then the content of the view gets transparant too. Am I missing an option, or doing something wrong to get this right? Also, I have little experience with subclassing, so any