I saw this question here: UIImagePicker allowsEditing stuck in center
It seems someone had this problem before, but there's no clear resolution.
Reproduction steps:
I'm on iOS 7.0.3.
Here's my code:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.modalPresentationStyle = UIModalPresentationCurrentContext;
imagePicker.allowsEditing = YES;
[self presentViewController:imagePicker animated:YES completion:nil];
You just need to write bellow single line of code.
UIImage *image = [info valueForKey:UIImagePickerControllerEditedImage];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With