单击选项卡时返回到 UINavigationController 堆栈顶部? [英] Return to top of UINavigationController stack when clicking a tab?

查看:19
本文介绍了单击选项卡时返回到 UINavigationController 堆栈顶部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有 4 个选项卡的 UITabBarController 界面.每个选项卡都有一个 UINavigationController.每当按下标签栏按钮时,我将如何返回到每个 UINavigationController 中最顶层的 UIViewController?

I have a UITabBarController interface with 4 tabs. Each tab has a UINavigationController. How would I return to the topmost UIViewController in each UINavigationController whenever a tab bar button is pressed?

推荐答案

-popToRootViewControllerAnimated

这篇关于单击选项卡时返回到 UINavigationController 堆栈顶部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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