Questions tagged [uipopovercontroller]

The UIPopoverController class is used to manage the presentation of content in a popover. You use popovers to present information temporarily. The popover content is layered on top of your existing content and the background is dimmed automatically. The popover remains visible until the user taps outside of the popover window or you explicitly dismiss it. Popover controllers are for use exclusively on iPad devices.

The popover content is layered on top of your existing content in a special type of window. The popover remains visible until the user taps outside of the popover window or you explicitly dismiss it. Popover controllers are for use exclusively on iPad devices. Attempting to create one on other devices results in an exception.

UIPopoverController Class Reference

1718 questions
20
votes
4 answers

Popover doesn't center on button

I am trying to center a popover on a button. I can't seem to figure out where I might be going wrong. Instead of the arrow being in the middle of the button, it is off center by half the width of the screen. @IBAction func buttonClicked(sender:…
user3642915
  • 203
  • 1
  • 2
  • 4
19
votes
6 answers

Remove the inner shadow that UIPopoverController creates

I am creating a custom layout of the popover that iOS provides. I have subclassed the UIPopoverBackgroundView and got it to draw the background for my popover correctly. My problem is now that UIPopoverController creates an inner shadow on the…
Sorig
  • 1,200
  • 11
  • 24
19
votes
2 answers

UIPopoverController dealloc getting called—ARC environment

While displaying a popover controller for a second time (after dismissing it and then re-displaying it), I get the following error: Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while…
19
votes
6 answers

UIPopOverController for iPhone (currently only available for iPad)

Before I implement something similar for the iPhone, I'm wondering if anyone has implemented something similar of the UIPopOverController for the iPhone. This is so far only available for iPad.
Brian Liang
  • 7,734
  • 10
  • 57
  • 72
19
votes
3 answers

Present UIPopoverController in same position with changing just arrow offset

My goal is to keep same coordinates for a UIPopoverController with just changing arrow offset. So basically i have three buttons touching each of them shows up a popover. When presenting this popover it changes position on the screen, but i do not…
gottlieb1878
  • 225
  • 2
  • 7
19
votes
2 answers

UIPopover How do I make a popover with buttons like this?

I'm wondering how I can create a popover with buttons like this. ANSWER: UIActionSheet * actionSheet = [[UIActionSheet alloc] initWithTitle: nil delegate: self …
ManOx
  • 1,935
  • 5
  • 23
  • 37
18
votes
1 answer

Using UIActionSheet on iPad

Apple's documentation for the UIActionSheet is causing me confusion. First off, in the iPad Human Interface Guidelines, it says : To learn more about using an action sheet in your code, see “Using Popovers to Display Content” in iPad Programming…
GendoIkari
  • 11,734
  • 6
  • 62
  • 104
18
votes
2 answers

UIPopover presentFromBarButton off center

I've noticed in a project that the positioning of a popover over a right bar button item seems to be off to the right for some reason. I've tried instead using a UIButton for the custom view, then presenting the popover from that button, but popover…
shortstuffsushi
  • 2,271
  • 19
  • 33
17
votes
4 answers

Compiling against 5.1 SDK forces new UIPopoverController "slide in" presentation of popovers -- how to disable?

Compiling my iPad app against the 5.1 SDK (release version) causes UIPopoverController to show itself using the new "slide in" from the left presentation. This completely breaks my popover presentation, which relied on having a "black" style header…
Jeremy Fuller
  • 3,391
  • 1
  • 32
  • 27
17
votes
6 answers

UIPopoverController does not dismiss when clicking on the NavigationBar

When clicking on a rightBarButton, a UIPopoverController will present. The problem is: when clicking on the NavigationBar, this UIPopoverController does not dismiss. Why? And is there a way to resolve it? I have tried to search, but can't find…
Lyon_Xu
  • 233
  • 2
  • 9
17
votes
5 answers

WKWebview with the new iOS13 modal crash when a file picker is invoked

I have a webview in a modal view controller on iOS13. When the user tries to upload an image to the webview, it crashes. This is the exception I'm getting: 2019-09-30 17:50:10.676940+0900 Engage[988:157733] * Terminating app due to uncaught…
Antzi
  • 12,831
  • 7
  • 48
  • 74
17
votes
1 answer

Set Multiple Arrow Directions on UIPopoverController in Swift

What is the syntax to set multiple arrow directions for a UIPopoverController in Swift? Something like this: popoverController.permittedArrowDirections = .Up | .Down
Travis M.
  • 10,930
  • 1
  • 56
  • 72
17
votes
2 answers

Symbol not found: _OBJC_CLASS_$_UIPopoverController

I am having problems with my universal app. I have set the Base SDK to iPhone 3.2 and set the target to 3.1. I have moved the files that are using the UIPopoverController to their own files and they shouldn't be loaded when loading the app on the…
Paul Peelen
  • 10,073
  • 15
  • 85
  • 168
17
votes
8 answers

iOS 8 presentationController determine if really is popover

I'm using the new adaptive "Present As Popover" capability of iOS 8. I wired up a simple segue in the StoryBoard to do the presentation. It works great on an iPhone 6 Plus as it presents the view as a popover and on an iPhone 4s it shows as a full…
Tod Cunningham
  • 3,691
  • 4
  • 30
  • 32
17
votes
5 answers

UIPopoverController orientation crash in iOS 6

My current program only support landscape orientation. In iOS 6, it crash on UIPopoverController. 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate…
saturngod
  • 24,649
  • 17
  • 62
  • 87