I have an application where I need to remove one view from the stack of a UINavigationController and replace it with another. The situation is that the first view creates an
Not exactly the answer but might be of help in some scenarios (mine for example):
If you need to pop viewcontroller C and go to B (out of stack) instead of A (the one bellow C), it's possible to push B before C, and have all 3 on the stack. By keeping the B push invisible, and by choosing whether to pop only C or C and B altogether, you can achieve the same effect.
initial problem A -> C (I want to pop C and show B, out of stack)
possible solution A -> B (pushed invisible) -> C (when I pop C, I choose to show B or also pop it)