My main view controller A presents view controller B, which then pushes view controller C onto its (B's) navigation stack. Now, from C, I want to be able to go straight to A. If I run dismissViewController from C, the animation is not smooth, and if I pop C to B and then dismiss B, there are two separate / distinct animations, which I do not want.
Is there a way for me to go from C to A directly without the intermediate transition?
So, running the following (from C) shows a sudden transition
[self dismissViewControllerAnimated:YES completion:nil];
whereas running the following (from C) shows two separate transitions...
UIViewController *previousViewController = [self.navigationController.viewControllers
objectAtIndex:(self.navigationController.viewControllers.count - 2)];
[self.navigationController popViewControllerAnimated:YES];
[previousViewController dismissViewControllerAnimated:YES completion:nil];