PhotoPicker: Using UIImagePickerController to Select Pictures and Take Photos

Last Revision:
Version 4.0, 2016-08-25
Now a universal app, upgraded to use UIPopoverPresentationController.
(Full Revision History)
Build Requirements:
iOS 9.x SDK or later
Runtime Requirements:
iOS 9.0 or later

PhotoPicker demonstrates choosing images from the photo library, take a picture with the camera, and customizing the camera view. This is done by using UIImagePickerController. The chosen image or camera photo is displayed in a UIImageView.

To customize the camera's interface, this sample shows how to use an overlay view. With this overlay view it gives you the ability to customize the UI as you take a picture.

Among the custom features of the camera is to take a single picture, timed picture, or repeated pictures like a camera with a fast shutter speed. Timed and shutter speed camera shots are done using the NSTimer class.