I'm having a problem regarding selecting image from image library in iPhone(iOS 8.4).
Here is my code:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
imagePicker.delegate = self;
imagePicker.allowsEditing = NO;
imagePicker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:imagePicker animated:YES];
But if I select an image and swap that image at the same time it opens an edit view and then if I try to delete that image, my app crash.
Is it a default feature of image library? Or can it be handled by code?
Please let me know. Thanks in advance