UIPopoverController

iOS applications sometimes present a view controller so that the user can make a choice. For example, the UIImagePickerController shows the user a table of images to choose from. On the iPhone and iPod touch, view controllers like this are presented modally and take up the entire screen. However, the iPad has more screen real estate and offers another option: UIPopoverController.

A popover controller displays another view controller’s view in a bordered window that floats above the rest of the application’s interface. When you create a UIPopoverController, you set this other view controller as the popover controller’s contentViewController. (You can only instantiate UIPopoverControllers on the iPad family of devices; trying ...

Get iOS Programming: The Big Nerd Ranch Guide, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.