Presenting the Picker on iPhone and iPad

Figure 8-1 shows the image picker presented on an iPhone and iPad, using a library source. The UIImagePickerController class is designed to operate in a modal presentation on iPhone-like devices (left) or a popover on tablets (right).

Image

Figure 8-1 The core image picker allows users to select images from pictures stored in the media library.

On iPhone-like devices, present the picker modally. On the iPad, embed pickers into popovers instead. Never push image pickers onto an existing navigation stack. On older versions of iOS, doing so would create a second navigation bar under the primary one. On modern versions ...

Get The Core iOS Developer’s Cookbook, Fifth 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.