【发布时间】:2017-09-29 05:38:27
【问题描述】:
我正在制作一个项目,其中第一个 MainPage 是 TabBarController(MainTabController)。但是后来我传递给另一个 Viewcontroller,还有一个 tabbetViewControllers(secondTabbedController)。现在,当我传递给 secondTabbedController 时, MainTabController 的选项卡并没有隐藏。应该有 secondTabBarController 项,但有第一个选项卡项(MainTabBarController)。我猜这是因为导航控制器,如果我删除它,它就是修复。但我需要这个 NavigationController。如何解决?
【问题讨论】:
-
当你推送你的 secondViewController 时,尝试在 viewWillDisappear 中隐藏标签栏视图
-
您是否需要第二个 VC 上的其他选项卡?
标签: ios swift uitabbarcontroller