I use the following code to show the UIImagePickerController to take a snapshot:
UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init];
[imagePicker setDelegate:self];
[imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera];
[self presentViewController:imagePicker animated:YES completion:nil];
Note: self is a UIViewController, built-in inside the container, which itself takes part in the UINavigationController
And I also implemented the following methods:
-(void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
{
UIImage *image = [info objectForKey:UIImagePickerControllerOriginalImage];
[self.imgProfile setImage:image];
[self dismissViewControllerAnimated:YES completion:nil];
}
- (void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
[self dismissViewControllerAnimated:YES completion:nil];
}
When I either select a snapshot or cancel it, the UIImagePickerController leaves, but the main view disappears! With Fade to Black.
I only encode iOS7 in the iPad app if it has anything to do with it.
Here is a video that shows the problem. Sorry blur, but it is under the NDA.
http://www.youtube.com/watch?v=sIaPyRlIqyE