Here's my set-up:
Nav Controller: ViewcontrollerA -> ViewControllerB
ViewcontrollerB displays a imagePickerController, setting itself as Delegate
If the user hits CANCEL from the UIImagePicker, I was to dismiss ViewControllerB completely, popping the user back to ViewControllerA.
In:
-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
I have called:
[self dismissViewControllerAnimated:YES completion:nil];
and
[[self parentViewController] dismissViewControllerAnimated:YES completion:nil];
and
[[[self parentViewController] parentViewController] dismissViewControllerAnimated:YES completion:nil];
No luck, ViewControllerB still hangs around.
How to I completely dismiss B programmatically from itself?