I have a UINavigationController and I in the current top-of-stack controller, I want to push a new controller on and then remove the current VC. In short, the goes from
[ViewController A]
[ViewController B]
to
[ViewController A]
[ViewController B]
[ViewController C]
to
[ViewController A]
[ViewController C]
I accomplish this in VC B by:
[self.navigationController pushViewController:VCC animated:YES];
[self removeFromParentViewController];
Works fine EXCEPT that the navigationItem stack still has the title/backButton from VC B sandwiched between A and C.
How can I remove a VC from the UINavigationController stack AND ALSO update the navigationItem stack?