Protocol: UIImagePickerControllerDelegate

Overview

The UIImagePickerControllerDelegate protocol defines methods that your delegate object must implement to interact with the image picker interface. The methods of this protocol notify your delegate when the user either picks an image or movie, or cancels the picker operation.Tells the delegate that the user picked a still image or movie.Tells the delegate that the user cancelled the pick operation.Keys for the editing information dictionary passed to the delegate.

Instance Method Summary (collapse)

Instance Method Details

- (Object) imagePickerController(picker, didFinishPickingMediaWithInfo:info)

Tells the delegate that the user picked a still image or movie. Your delegate object’s implementation of this method should pass the specified media on to any custom code that needs it, and should then dismiss the picker view.When editing is enabled, the image picker view presents the user with a preview of the currently selected image or movie along with controls for modifying it. (This behavior is managed by the picker view prior to calling this method.) If the user modifies the image or movie, the editing information is available in the info parameter. The original image is also returned in the info parameter.If you set the image picker’s showsCameraControls property to NO and provide your own custom controls, you can take multiple pictures before dismissing the image picker interface. However, if you set that property to YES, your delegate must dismiss the image picker interface after the user takes one picture or cancels the operation.Implementation of this method is optional, but expected.

Parameters:

  • picker (UIImagePickerController)

    The controller object managing the image picker interface.

  • info (Hash)

    A dictionary containing the original image and the edited image, if an image was picked; or a filesystem URL for the movie, if a movie was picked. The dictionary also contains any relevant editing information. The keys for this dictionary are listed in “Editing Information Keys.”

Returns:

- (Object) imagePickerControllerDidCancel(picker)

Tells the delegate that the user cancelled the pick operation. Your delegate’s implementation of this method should dismiss the picker view by calling the dismissModalViewControllerAnimated: method of the parent view controller.Implementation of this method is optional, but expected.

Parameters:

Returns: