jeudi 28 juillet 2016
How to prevent user to select and swap images at a same time from image library so that it doesn't to go edit view?
I am 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
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire