Graphics Programs Reference
In-Depth Information
UIPopoverController
It is common for an application to present a view controller so that the user can make a
choice about what the application should do next. For example, the
UIImagePicker-
Controller
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, having more screen real estate, 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
UIPopoverCon-
troller
, you set this other view controller as the popover controller's
con-
tentViewController
.
In this chapter, you will present the
UIImagePickerController
in a
UIPopover-
Controller
when the user taps the camera bar button item in the
DetailViewCon-
troller
's view.
Figure 13.3 UIPopoverController