Take the 2-minute tour ×

I have around 25 views in a navigation based app. From the 25th view I want to come back to home screen. How do I remove all the views from navigation stack? Do I have to check for each view is not nil and remove from stack?

Please help. Thanks in advance.

share|improve this question
possible duplicate of Pop to top of Navigation View Controller –  bdares Oct 13 '11 at 0:56
add comment

2 Answers

up vote 4 down vote accepted
[self.navigationController popToRootViewControllerAnimated:FALSE];
share|improve this answer
add comment

You can use popToRootViewController using this method: popToRootViewControllerAnimated: Refer: popToRootViewController

share|improve this answer
add comment

Your Answer


