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
120
votes
13 answers

How to present popover properly in iOS 8

I'm trying to add a UIPopoverView to my Swift iOS 8 app, but I am unable to access the PopoverContentSize property, as the popover does not show in the correct shape. my code: var popover: UIPopoverController? = nil func addCategory() { …
Joris416
  • 4,751
  • 5
  • 32
  • 59
75
votes
9 answers

UIPopoverPresentationController on iOS 8 iPhone

Does anyone know if UIPopoverPresentationController can be used to present popovers on iPhones? Wondering if Apple added this feature on iOS 8 in their attempt to create a more unified presentation controllers for iPad and iPhone. Not sure if its…
Dave
  • 4,038
  • 9
  • 45
  • 57
44
votes
6 answers

UIPopoverPresentationController displaying popover as full screen

I am trying to use UIPopoverPresentationController to display a popover that doesn't take up the whole screen. I've followed many different tutorials with no luck. Here is my code. It correctly instantiates the ViewController, but it takes up the…
The Nomad
  • 7,155
  • 14
  • 65
  • 100
21
votes
13 answers

How to make UIPopoverController keep same position after rotating?

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…
B.S.
  • 21,660
  • 14
  • 87
  • 109
16
votes
1 answer

ActionSheet Source View BarButtonItem

I have a bar button item in the navigation bar that when pressed, will present a UIAlertController with the style as .ActionSheet. In the iPhone it appears just the way that I want. For the iPad I know I need to add // For iPad, set the pop over…
Mike Walker
  • 2,944
  • 8
  • 30
  • 62
15
votes
4 answers

How to display a popover programmatically from a uibutton that is also created programmatically (Not using interface builder)

I have a button I have created programmatically within a view controller. Once the button is pressed I want it to to use a method to create the popover programmatically. The button which is created in the ViewDidLoad in my view controller.m UIView…
Berns
  • 159
  • 1
  • 1
  • 12
14
votes
1 answer

How to avoid button tint color change when presenting a popover in iOS?

I have a button that show a popover over fullscreen, the main view has a 6 custom views that have 5 button with a tint color in grey or blue, depending of some parameter. but when the popover appears al the button inside the customs view become…
Yoel Jimenez del valle
  • 1,270
  • 1
  • 9
  • 20
13
votes
4 answers

How to detect when a popover is dismissed in iOS 9

I'm updating an app to use universal storyboards. I've created a popover segue to a new viewcontroller using interface builder by dragging from a button to my new viewcontroller and selecting 'Present As Popover' as the kind of segue. When the user…
Mark Bridges
  • 8,228
  • 4
  • 50
  • 65
13
votes
3 answers

io8 How to set UIPopoverPresentationController size

I was set the UIPopoverPresentationController to show the UIViewController and that like UIAlertView show. But when I created the customized UIViewController and use the UIPopoverPresentationController. There was show full screen. I want to build…
dickfala
  • 3,246
  • 3
  • 31
  • 52
12
votes
3 answers

Stop UIPopover from dismissing automatically

I was wondering if there was a way to stop an iPad popover from dismissing automatically whenever you touch the screen outside the popover? If not, is there some kind of method similar to "popoverDidDismiss" that I could call to tell when the…
Luke Baumann
  • 596
  • 12
  • 35
12
votes
1 answer

how to use popover controller in iPhone

I couldn't show popover controller as popover in iPhone whereas it works very well with iPad. Any ideas on how to do that in iPhone. As far as I have searched I couldn't find any. anyways to make the popover appear in iphone as it is in iPad is…
12
votes
9 answers

setContentViewController method in popover iOS8 causes app crash

The setContentViewController method in UIPopoverController seems to be causing an app crash in iOS 8. Just wondering if anybody else also faced this issue in iOS 8. This works without any issue in iOS 7. The error pointed in the exception seems to…
Padmika
  • 466
  • 6
  • 14
9
votes
2 answers

How can I make UIPopoverPresentationController resize on navigation pop?

I'm using UIPopoverPresentationController for popovers in an iOS app. When a navigation controller in a popover pushes a new view controller, the popover resizes to that view controller's preferredContentSize. But when the navigation controller…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145
8
votes
1 answer

Weird shadow behind popover view in iOS 13.1 and 13.2 only

Even though pop over background colour is clear there is a weird shadow behind the popover view this issue is happening only in 13.1 and 13.2 and it is working fine in 13 and below I can see in view hierarchy that…
Priyanka M V
  • 111
  • 3
8
votes
3 answers

When presenting a popover view, how can I let the user select cell in parent collection view?

I have a collection view and when a cell is selected it presents a popover view showing more information about that cell. I would like to allow the user to click another cell and then have the popover view change to showing that cell's information…
webmagnets
  • 2,266
  • 3
  • 33
  • 60
1
2 3
17 18