I have 3 view controllers in my storyboard for example Page1, Page2, and Page3. Both Page1 and Page2 are pushed to Page3. What I want to do is when Page3tap on Back button, the view will 100% return to Page1 and never get back to Page2. The code I am using now is
[self.navigationController popViewControllerAnimated:YES];
What will go back to the page it comes from is there any way to do that? I want to fix the page it back but not pop back to where it comes from.
you should use the
it will work for you perfectly, if the Page1 is the root.