[英]popping to root view in navigation controller
I have one navigation controller with three views. 我有一个导航控制器有三个视图。 I push the three view controllers onto the navigation controller's stack and want to pop all the pushed view controllers at once by the click on a button.
我将三个视图控制器推到导航控制器的堆栈上,并希望通过单击按钮立即弹出所有推动的视图控制器。 I would like to be able to do that from any pushed view controller...
我希望能够从任何推动视图控制器做到这一点......
Please can you help me and give me pointers on how I could do that? 请你能帮助我,并指出我如何做到这一点?
[self.navigationController popToRootViewControllerAnimated:YES];
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.