[英]Pop to top of Navigation View Controller
I am trying to set up a Navigation View where a user can enter in settings. 我正在尝试设置一个导航视图,用户可以在其中输入设置。 Once a setting is finalized in the 3rd level (after a button press outside of the navigation bar), I would like to have the Navigation View popped back to the root.
在第三级中完成设置后(在导航栏外部按下按钮后),我希望将导航视图弹出回到根目录。 How can I do this?
我怎样才能做到这一点?
Use [UINavigationController popToRootViewControllerAnimated:animated];
使用
[UINavigationController popToRootViewControllerAnimated:animated];
, where animated
is a BOOL. ,其中的
animated
是BOOL。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.