I try to open a new view (UnprocessedPhotoViewController) right after the delegate function for my UIImagePickerController returns "didFinishPickingImage".
Unfortunately, it looks like I can either open the modal view of the UIImagePickerController, or switch to UnprocessedPhotoViewController as modal, but not both in series.
In the code below, clicking a button activates pickPhoto IBAction. This code successfully activates the UIImagePickerController. After the user selects the image, the didFinishPickingImage delegation function is called, which saves the image in a variable, tries to close the UIImagePickerController mod and open UnprocessedPhotoViewController in the new modal.
Note. If I comment out on ImagePicker and run showPhoto directly, UnprocessedPhotoViewController will be shown successfully. In addition, if I create a new button for launching or viewing, it works successfully, but I cannot launch the views sequentially. I would expect that after the user selects an image, a new view will be launched that will allow the user to process the image.
What is the correct way to ensure that the ImagePicker mod closes and then opens UnprocessedPhotoViewController?
Thanks!!!
code:
- (IBAction)pickPhoto:(id)sender{
source share