我在 UITabBarController (选项卡 1)中有一个 UINavigationController。当我进入第二个 View (仍在选项卡 1 中)时,如何使选项卡栏消失?我可以使用返回按钮向后导航,标签栏将重新出现。
最佳答案
self.hidesBottomBarWhenPushed=YES;
将此行放在您导航的位置(在推送操作之前)。
和 self.hidesBottomBarWhenPushed=NO;
在您推送其他 View 的同一页面的 viewWillDisappear 中。
真的行。
关于iphone - 带有 UINavigationController 的 UITabBarController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4394826/