gpt4 book ai didi

iphone - 带有 UINavigationController 的 UITabBarController

转载 作者:行者123 更新时间:2023-12-01 18:03:17 25 4
gpt4 key购买 nike

我在 UITabBarController (选项卡 1)中有一个 UINavigationController。当我进入第二个 View (仍在选项卡 1 中)时,如何使选项卡栏消失?我可以使用返回按钮向后导航,标签栏将重新出现。

最佳答案

self.hidesBottomBarWhenPushed=YES;
将此行放在您导航的位置(在推送操作之前)。

和 self.hidesBottomBarWhenPushed=NO;
在您推送其他 View 的同一页面的 viewWillDisappear 中。

真的行。

关于iphone - 带有 UINavigationController 的 UITabBarController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4394826/

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