I have a table view controller, A, which does a push segue to a view controller, B. B then does a modal segue to a view controller C. I have a button on C which needs to result in the dismissal of C (which is modal as stated) and ALSO the popping of B so that we go back to A. In C, I have detected the button press and used a delegate to call back to B which then dismisses the modal view controller C using this:
[sender dismissViewControllerAnimated:NO completion:nil];
B then uses a delegate to call back to A which pops B from the stack using this:
[self.navigationController popViewControllerAnimated:YES];
Now this all works, except for the very annoying fact that I briefly see B during all this, whereas I would like to be able to "pop" from C straight back to A without seeing B at all, however briefly. I have tried combinations of YES/NO for the Animated parameters above and also tried popToRootViewControllerAnimated, but no luck :-(
Does anybody have any ideas?