I'm trying to take image using UIImagePickerController. If the property allowEditing is NO then everything working fine. But as soon as I change the property value to YES no image is coming. It's occuring in both Camera and Library.
Below is the code that executed when button is tapped for opening camera.
if ([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]) {
UIImagePickerController *controller_imagePicker = [[UIImagePickerController alloc] init];
[controller_imagePicker setDelegate:self];
[controller_imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[controller_imagePicker setAllowsEditing:YES];
controller_imagePicker.modalPresentationStyle = UIModalPresentationOverCurrentContext;
[self presentViewController:controller_imagePicker animated:YES completion:nil];
}
And when we take the image and edits it and use the image. black image is coming in the respecitve imageview.
Also as soon as the camera opens I receive this warning: "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates."
Any Idea??