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.
You can use this code.
NSMutableArray *navigationArray = [[NSMutableArray alloc] initWithArray: self.navigationController.viewControllers]; [navigationArray removeAllObjects]; self.navigationController.viewControllers = navigationArray;
Hope that will work for you.