O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Popovers

A popover is a temporary view that is revealed when the user taps a control or onscreen area. Popovers can contain any view of your choosing, including labels, images, and buttons. In the following image, a UITableView is displayed in a popover:
354
When the Plays button is tapped, the popover appears.
The UIPopoverController class manages the presentation of the content for the popover. To display a content view, you set the contentViewController property on the popover to a view controller of your choice.

Displaying a Popover

There are two ways to display a popover. First, when a button in a toolbar is tapped, you can call presentPopoverFromBarButtonItem:permittedArrowDirections:animated: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required