Taking Pictures and UIImagePickerController
In the takePicture: method, you will instantiate a UIImagePickerController and present it on the screen. When creating an instance of UIImagePickerController, you must set its sourceType property and assign it a delegate.
Setting the image picker’s sourceType
The sourceType constant that tells the image picker where to get images. It has three possible values:
- UIImagePickerControllerSourceTypeCamera
-
The user will take a new picture.
- UIImagePickerControllerSourceTypePhotoLibrary
-
The user will be prompted to select an album and then a photo from that album.
- UIImagePickerControllerSourceTypeSavedPhotosAlbum
-
The user picks from the most recently taken photos. ...
Get iOS Programming: The Big Nerd Ranch Guide 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.