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
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
111
votes
3 answers

UIPopovercontroller dealloc reached while popover is still visible

I assure you that I did look for an answer in SO for my question but none of them were helpful. Here I got a simple code that should present a UIImagePickerController within a…
96
votes
15 answers

Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES'

My app (iPad;iOS 6) is a landscape only application, but when I try using a UIPopoverController to display the photo library it throws this error: Supported orientations has no common orientation with the application, and shouldAutorotate is…
Destiny Dawn
  • 1,457
  • 3
  • 15
  • 29
89
votes
21 answers

Popover with embedded navigation controller doesn't respect size on back nav

I have a UIPopoverController hosting a UINavigationController, which contains a small hierarchy of view controllers. I followed the docs and for each view controller, I set the view's popover-context size like so: [self…
Ben Zotto
  • 70,108
  • 23
  • 141
  • 204
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
73
votes
6 answers

How to Dismiss a Storyboard Popover

I've created a popover from a UIBarButtonItem using Xcode Storyboards (so there's no code) like this: Presenting the popover works just fine. However, I can't get the popover to disappear when I tap the UIBarButtonItem that made it appear. When…
Sam Spencer
  • 8,492
  • 12
  • 76
  • 133
70
votes
13 answers

UIPopoverController automatically resizing to max height on pushViewController

I have a popover containing a UINavigationController. I can display the popover fine, and it contains the navController just fine. The navController contains a tableView and when I select an item it creates a new detail view: …
SG1
  • 718
  • 1
  • 6
  • 4
63
votes
17 answers

UIPopover without any arrows

Is it possible to present a popover without any sort of arrows pointing somewhere?
David Liu
  • 9,426
  • 5
  • 40
  • 63
58
votes
4 answers

How can I fix the "UIPopoverController is deprecated" warning?

I am using this code: mediaLibraryPopover = [[UIPopoverController alloc] initWithContentViewController:avc]; [self.mediaLibraryPopover presentPopoverFromRect:[theButton bounds] inView:theButton …
Varun Naharia
  • 5,318
  • 10
  • 50
  • 84
53
votes
13 answers

Popovers cannot be presented from a view which does not have a window

What does this error indicate: "Popovers cannot be presented from a view which does not have a window."
a111
  • 2,125
  • 5
  • 20
  • 21
50
votes
4 answers

Source type 1 not available

I have an app for iPhone and iPad, and when I try to load an UIPickerViewController in a UIPopoverController for iPad I get the Exception "Source type 1 not available". getting the problem even though using the device. @try { if…
48
votes
11 answers

how to center a popoverview in swift

I have the following code to show a popoverview (dialog) without an arrow, which works fine. The only problem is, that the dialog is shown in the top left (IPad). I would like to center the view on the screen. What to change or add in my following…
mcfly soft
  • 11,289
  • 26
  • 98
  • 202
47
votes
6 answers

UIActionSheet from Popover with iOS8 GM

Anyone is getting this message while trying to show UIActionSheet from popover? Your application has presented a UIAlertController () of style UIAlertControllerStyleActionSheet. The modalPresentationStyle of a UIAlertController with this style is…
Tomer Peled
  • 3,571
  • 5
  • 35
  • 57
43
votes
11 answers

UIAlertController is Crashed (iPad)

I am using Xcode 6 to develop an iOS Application. When I used UIAlertController, it can be worked well on iPhone 6 simulator, but crashes on iPad simulator. My problem while clicking "share", then it could be crashed. How could I solve it? Here is…
user5122712
40
votes
8 answers

UIPopoverController for iphone not working?

I need to use a UIPopOverController for my iPhone app ,i searched stackoverflow someone said UIPopoverController does not run on iphone iphone device WHY?.when i run on iphone device i got this error …
Ravindhiran
  • 5,304
  • 9
  • 50
  • 82
1
2 3
99 100