Questions tagged [uipopover]

UIPopover is a common misrepresentation of UIPopoverController, which is used in iOS to manage the presentation of content in a popover.

UIPopover is a common misrepresentation of UIPopoverController, which is used in iOS to manage the presentation of content in a popover. The iOS SDK does not expose the popover view directly, instead it defines a way to wrap a given controller in an system-created popover.

Please use for all popover-related questions.

270 questions
8
votes
4 answers

IOS8 how to move an active popover

I have developed an app for iOS7 and now trying to update it for iOS8. Issue i have is the following: The app screen orientation can be rotated and a few buttons in some cases move drastically. I have a few popovers that point to these buttons, so…
Display Name
  • 1,025
  • 2
  • 15
  • 34
7
votes
2 answers

Detect popover dismiss

I know I can use popoverPresentationControllerDidDismissPopover but that is only called when the user taps outside the popover view to dismiss it. When I dismiss the popover manually (self.dismissViewControllerAnimated(true, completion: nil) in the…
Pixel
  • 171
  • 2
  • 10
7
votes
0 answers

UIPopoverPresentationController : ActionSheet position at barButtonItem (iPad)

I have an UIAlertController (UIAlertControllerStyleActionSheet) on iPhone which now should be presented in a UIPopoverPresentationController on the iPad version.. I am doing the following: UIPopoverPresentationController *popover =…
Laurenz Glück
  • 1,762
  • 3
  • 17
  • 38
7
votes
3 answers

Swift: How to create a popup menu in iOS

I'm doing some drawing on a custom UIView canvas, and rather than having a set of buttons at the bottom of the view to allow the user to select shapes, I'd like to have the user do a long press gesture, then have a popup-type menu appear with…
NumberOneRobot
  • 1,691
  • 6
  • 17
  • 23
7
votes
2 answers

How to present popover with animations?

Currently, I'm using presentPopoverFromRect:inView:permittedArrowDirections:animated: to present my popover. But I'm looking for more fanciful animations (eg. the popover expanding from a particular point) to present the popover. I've tried…
tommi
  • 6,883
  • 8
  • 37
  • 60
6
votes
3 answers

UIModalPresentationPopover - arrow direction Up, Prevent Contentview from starting from tip of the arrow

in iOS 13 it happens that the view of UIViewcontroller that is presented as model starts from the tip of the arrow. Because of it top banners in all of my popover gets cut. Can I prevent this from happening ? I want that my UIView does not start…
6
votes
1 answer

Showing pop over from Bar Button in Navigation bar in iPhone

In Swift, I'm trying to show a popover from a bar button item present in the top right position of navigation bar. Below is my code: func showOptions(sender: UIBarButtonItem) { let optionsVC = OptionsViewController(nibName:…
Satyam
  • 15,493
  • 31
  • 131
  • 244
6
votes
2 answers

Present a UIAlertController from within a Popover in iOS8

I set a UITableViewController to be displayed in a popover on iPad : When I click on a row, I display an alert to warn the user of a potential destructive action. I used the new UIAlertController, and here is what happens: The popover becomes very…
Frederic Adda
  • 5,905
  • 4
  • 56
  • 71
6
votes
6 answers

iOS Present Popover from bar button item bottom

I have an UIPopoverController that presents an UIViewController using this method: [self.popover presentPopoverFromBarButtonItem:self.infoBarButtonItem permittedArrowDirections:UIPopoverArrowDirectionUp …
lukas
  • 2,300
  • 6
  • 28
  • 41
5
votes
2 answers

Change contentSizeForViewInPopover on navigationController push on iOS

I have a UIPopoverController with navigationController and bunch of subviews. The size of the popover is set just before it's shown like this: [self.myPopover setPopoverContentSize:CGSizeMake(320, 500)]; That works fine. The popover is shown with…
Borut Tomazin
  • 8,041
  • 11
  • 78
  • 91
5
votes
1 answer

Contents of UIPopoverController are blurry

I am presenting a UIPopoverController in my application but the content view is appearing slightly blurred. To demonstrate, I placed a second instance of the content view controller directly onto self.view and it is easy to see by comparison that…
rdavisau
  • 895
  • 6
  • 12
5
votes
2 answers

UIPopoverPresentationController Fade In

In my iOS8+ project, I am presenting a UIViewController using UIPopoverPresentationController: vc.modalPresentationStyle = UIModalPresentationPopover; vc.popoverPresentationController.delegate = self; vc.popoverPresentationController.sourceView =…
ZeMoon
  • 20,054
  • 5
  • 57
  • 98
5
votes
2 answers

How to enable touch outside when PopOverView open?

I'm using popover with my app. I want to enable touch outside when popoverview open. For now I can not touch outside of popoverview when i click the outside of popoverview , it disappear. Here is my screen shot for what i want to do. I use…
fozoglu
  • 729
  • 5
  • 21
5
votes
1 answer

Presenting view controllers on detached ... - sometimes

Like others coming to iOS8, I'm getting the warning: Presenting view controllers on detached view controllers is discouraged . This is caused by the following code: -…
Kent
  • 1,705
  • 3
  • 16
  • 26
5
votes
2 answers

Can't resize height contentSizeForViewInPopover of UIViewController in side UINavigationController of UIPopover

I use UINavigationController inside UIPopoverController -(void)showEditMenuFrom:(UIButton *)button{ if (self.popover) { [self.popover dismissPopoverAnimated:YES]; self.popover = nil; } else { …
LE SANG
  • 10,955
  • 7
  • 59
  • 78
1
2
3
17 18