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.
Now I have in the stack A , B.
Now I want to call C (from B).
I want the stack to be A, C.
Thanks.
This is the answer.
The following code pops the current view controller.
And this pushes the new one:
Hope it helps!