I want to call a new view controller and remove the current view controller from the navigation controller stack. For example. I am in view controller A and I call B.
<
To remove the second-from-last navigation item:
NSMutableArray *navigationStack = [[NSMutableArray alloc] initWithArray:
self.navigationController.viewControllers];
[navigationStack removeObjectAtIndex:[navigationStack count] - 2];
self.navigationController.viewControllers = navigationStack;
For example, run this from viewDidLoad
on controller C to remove controller B from the navigation stack.