弹出到导航视图控制器的顶部 [英] Pop to top of Navigation View Controller

查看:20
本文介绍了弹出到导航视图控制器的顶部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试设置一个导航视图,用户可以在其中输入设置.一旦在第 3 级完成设置(在导航栏外按下按钮后),我希望将导航视图弹出回根目录.我该怎么做?

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?

推荐答案

使用 [UINavigationController popToRootViewControllerAnimated:animated];,其中 animated 是一个 BOOL.

Use [UINavigationController popToRootViewControllerAnimated:animated];, where animated is a BOOL.

这篇关于弹出到导航视图控制器的顶部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆