Changes

Jump to: navigation, search
Creating and Configuring a UIImagePickerController Instance
== Creating and Configuring a UIImagePickerController Instance ==
<google>IOSBOX</google>
In order to use the UIImagePickerController, an instance of the class must first be created. In addition, properties of the instance need to be configured to control the source for the images or videos (camera, camera roll or library). Further, the types of media that are acceptable to the application must also be defined (photos, videos or both). Another configuration option defines whether the user has the option to edit a photo once it has been taken and before it is passed to the application.
The source of the media is defined by setting the sourceType property of the UIImagePickerController object to one of the three supported types:

Navigation menu