在导航控制器中弹出到根视图 [英] 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];
这篇关于在导航控制器中弹出到根视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文