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

How to create Popovers with Xcode Storyboards

How can I create a popover in an iPad Storyboard for an iOS 5.0+ app? There's already one setup with the Xcode Project Template (Utility App), but I can't seem to figure out how Apple got it to work. I tried to mimic it, but only got errors. I even…
Sam Spencer
  • 8,492
  • 12
  • 76
  • 133
16
votes
2 answers

UIDatePicker in UIPopover

I have searched the entire internet (maybe I am exaggerating a little) for a tutorial on how to put a DatePicker into a UIPopover and display that in an iPad application. I have tried creating a viewcontroller, placing the datepicker in the view…
Prajoth
  • 900
  • 3
  • 12
  • 26
16
votes
13 answers

Determine if a view is inside of a Popover view

We have common views that we use in our application in many locations inside of UINavigationControllers. Occasionally the UINavigationControllers are inside of popover views. Now the views we put into the nav controllers modify their navigation…
mjdth
  • 6,536
  • 6
  • 37
  • 44
16
votes
2 answers

Storyboard popover dismissed, delegate methods not called

I have a view controller that's presented in a popover using a storyboard segue. In the presenting view controller, I had the following code: override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if let svc =…
Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
16
votes
1 answer

UINavigationController inside UIPopoverController 'Back' animations weird in Landscape

I'm stumped :-\ I have a legacy app in the store that I'm refreshing for iOS 8/9. It was written years ago (pre-ARC) and is a universal app for iPhone and iPad. Everything is now working apart from this ... On iPad, there is a toolbar at the top of…
Roger
  • 15,793
  • 4
  • 51
  • 73
16
votes
6 answers

UIPopoverController w/ UINavigationController Subview contentSizeForViewInPopover doesnt work on Parent

I have a UIPopoverController with a subclass UINavigationController. Both the parent and child views are UITableviews. When i call parent view originally with contentSizeForViewInPopover = (320,480) it works great. When i click into the child view…
Abbacore
  • 385
  • 1
  • 3
  • 8
16
votes
7 answers

Accessing UIPopoverController for UIActionSheet on iPad

On the iPad, one can show a UIActionSheet using -showFromBarButtonItem:animated:. This is convenient because it wraps a UIPopoverController around the action sheet and it points the popover's arrow to the UIBarButtonItem that is passed in. However,…
westsider
  • 4,967
  • 5
  • 36
  • 51
16
votes
3 answers

Unpredictable delay before UIPopoverController appears under iOS 8.1

This problem happens with SDK 8.1, when running under iOS 8.1, but not when running under iOS 7. It is for iPad only. The problem appears both with simulator and on a hardware device. The code below demonstrates a view controller that contains a…
rene
  • 1,975
  • 21
  • 33
16
votes
4 answers

in iOS8: UIPopoverController presentPopoverFromRect not work for keyWindow any more

As titled, in iOS8, [UIPopoverController presentPopoverFromRect] does not work for [UIApplication sharedApplication].keyWindow any more. (It does work in iOS7) I verified following codes: TestViewController *test = [[TestViewController alloc]…
LiangWang
  • 8,038
  • 8
  • 41
  • 54
16
votes
2 answers

Custom UIPopoverBackgroundView: no drop shadow

I've used this good tutorial to create a custom UIPopoverBackgroundView class. It works well. The only problem is that I am not getting the typical UIPopoverController drop shadow and I want it. I've tried specifying it on the layer of my…
spring
  • 18,009
  • 15
  • 80
  • 160
15
votes
3 answers

UIPIckerView in UIPopoverController

I'm not trying to resize the PickerView's height. I'm fine with having the default size, which I believe is 320 x 216. I created this code to present a pickerView in my popovercontroller, however, I get these messages on the console: 2 011-06-30…
Crystal
  • 28,460
  • 62
  • 219
  • 393
15
votes
3 answers

Don't Dismiss UIPopoverController when tap off

after a bit of searching, I couldn't find an answer to something that seems like it would be useful to many. Is there a way to make a UIPopoverController not dismiss when the user clicks somewhere on the outside? I want the user to have to use a…
Jesse Naugher
  • 9,780
  • 1
  • 41
  • 56
15
votes
5 answers

iPad popover textfield - resignFirstResponder doesn't dismiss keyboard

I have two text fields email and password. The following code works fine when the fields are presented on a regular view but when they are on a popover, the resignFirstResponder does not work (becomeFirstResponder works). textFieldsShouldReturn was…
mosdev
  • 217
  • 2
  • 9
15
votes
3 answers

How to get reference to UIPopoverController when using adaptive segue?

In my iOS 7 app, I detected if a segue was a popover via this check in prepareForSegue: if ([segue isKindOfClass:[UIStoryboardPopoverSegue class]]) But now that I am using adaptive segues, the Present as Popover segue is no longer returning true in…
Jordan H
  • 52,571
  • 37
  • 201
  • 351
15
votes
3 answers

Animate popoverContentsize when pushing navigation view controller in popover on iPad

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…
Tom Hamming
  • 10,577
  • 11
  • 71
  • 145