开发者

How to remove all views from navigation stack?

开发者 https://www.devze.com 2023-04-12 11:05 出处:网络
I have around 25 views in a navigation based 开发者_StackOverflow社区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

I have around 25 views in a navigation based 开发者_StackOverflow社区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.


[self.navigationController popToRootViewControllerAnimated:FALSE];


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号