I am calling UIImagePickerController this way:
imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagePicker animated:YES];
and want to get the image that picked with this delegate method:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)img editingInfo:(NSDictionary *)editInfo
the problem is that the editInfo NSDictionary is equal to nil everything
If you Jump to to definition for the method you’re using (CMD +click), it says – “__OSX_AVAILABLE_BUT_DEPRECATED”:
use: