Deprecated UIImagePickerControllerDelegate Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 3.0

imagePickerController:didFinishPickingImage:editingInfo:

Tells the delegate that the user picked an image. (Deprecated in iOS 3.0. Use imagePickerController:didFinishPickingMediaWithInfo: instead.)

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo
Parameters
picker

The controller object managing the image picker interface.

image

The image that the user picked. If user editing is enabled, this may be a cropped and adjusted version of the original image. In this case, the original image, and the editing information, are available in the editingInfo parameter.

editingInfo

A dictionary containing any relevant editing information. If editing is disabled, this parameter is nil. The keys for this dictionary are listed in “Editing Information Keys.”

Discussion

Your delegate’s implementation of this method should pass the specified image on to any custom code that needs it and then dismiss the picker view.

When user editing is enabled, the picker view presents the user with a preview of the currently selected image 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, the editing information is available in the editingInfo parameter. If you don’t need the editing information, simply use the image in the image parameter as is.

Special Considerations

This deprecated method supports picking only still pictures. The replacement method, imagePickerController:didFinishPickingMediaWithInfo:, supports picking movies as well as still pictures.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.0.
Declared In
UIImagePickerController.h