gpt4 book ai didi

ios - 即使使用导航 Controller ,UITabbar 也会消失

转载 作者:行者123 更新时间:2023-11-30 11:30:55 25 4
gpt4 key购买 nike

我嵌入了 viewControllerNavigationController并将其设置为rootViewController 。然后我连接了TabBarControllerNavigationController 。我在LessonViewController中有一个按钮显示PurchaseViewController ,然后 PurchaseViewController 中的后退按钮其中显示 LessonViewController 。然而,标签栏仍然存在于 PurchaseViewController 中。所以我勾选了hideBottomBarOnPush ,但是,当我继续回到LessonViewController时,它解决了这个问题。标签栏消失了。

有什么想法吗?

下图是我的 Storyboard现在的样子:

image link

最佳答案

与倒钩的代码类似,我让它工作,同时启用“按下时隐藏底部工具栏”,然后弹出 View Controller :

override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
self.tabBarController?.tabBar.hidden = false

}

关于ios - 即使使用导航 Controller ,UITabbar 也会消失,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50270717/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com