Uiimagepickercontroller is a subclass of Uinavigationcontroller. By using Uiimagepictercontroller, you can finish reading photos from your albums. The Uiimagepictercontroller view provides a navigation interface that allows users to select an item from the photo gallery. Also provides an interface for shooting a video or a static picture. Typically renders a view controller in modal mode
The application needs to conform to the Uiimagepictercontrollerdelegate protocol.
It contains two primary delegate methods to handle the Select/Cancel operation:
First, when the user selects a photo, the Didfinishpickingimage method is called:
-(void) Imagepickercontroller: (Uiimagepickercontroller *) Picker didfinishpickingimage: (UIImage *) Image Editinginfo :(nsdictionary *) Editinginfo;
Second, when the user cancels the photo selection, call the Imagepictercontrollerdidcancel method:
-(void) Imagepickercontrollerdidcancel: (Uiimagepictercontroller *) picker;
IOS camera Operation class Uiimagepickercontroller