I am struck in an issue were I have to navigate from fourth view to second view, now i want to know how to navigate without allocating memory to second view in fourth view. I know how to navigate from any view to root view using popToRootViewController: but I couldn’t figure out this issue.
I hope some will help me in clearing this issue,Thanks.
You can use
[[self navigationController] popToViewController:[self.navigationController.viewControllers objectAtIndex:1] animated:YES];You should change the
objectAtIndexaccordingly, in my example it goes to the 2nd view.