I am having confusion about push navigation controller and pop navigation controller. for example :
I have 5 view controller A , B ,C ,D ,E . I reach to E controller by push navigation from A. Now, after some task I need to navigate directly to the C controller. I know I can do this by using below method .
[self.navigationController popToViewController: animated:];
But I want to know that what about D controller ? will it be in stack or remove from stack ?
If D would be in stack then how to remove it from the stack ?
When you call the method
All the views till C are popped.
its like calling popViewControllerAnimated: 2 times (When you are at E).
If you want to follow the progress you can put some NSLog’s in the viewDidUnload/Dealloc(no ARC).