Picking a Photo from the Photo Library IPHONE APPS

UIKit provides access to the user’s photo library through the UIImagePickerController class. This controller displays a photo picker interface, which provides controls for navigating the user’s photo library and selecting an image to return to your application. You also have the option of enabling user editing controls, which let the user the pan and crop the returned image. This class can also be used to present a camera interface.

Because the UI Image Picker Controller class is used to display the interface for both the camera and the user’s photo library, the steps for using the class are almost identical for both. The only difference is that you assign the UI Image Picker Controller Source Type Photo Library value to the sourceType property of the picker object. The steps for displaying the camera picker are discussed in “Taking Pictures with the Camera”.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status