I allow the user to take a photo on the fly with the camera. When the user clicks on the "use" button, I save the taken image in the photo roll. After saving it, I would to retrieve the corresponding NSURL as the user had selected it.
I should find a way to automatically select it such that
Code:
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
is called again and I can use the UIImagePickerControllerReferenceURL key to retrieve the corresponding url.
How could I do?
Code:
NSURL *imageUrl = [info valueForKey:@"UIImagePickerControllerReferenceURL"];
works when the user select the image directly from the gallery.