隐藏tabbar的方法,self.hidesBottomBarWhenPushed
2014-10-22 11:07
375 查看
若是程序的结构是:tabbarcontrol里有一个nagvationcontroller,然后nag又有三层,分别为A,B,C,假如我希望C的View里面不显示出tabbar,那么是需要在B的viewappear里面加入代码:
- (void)viewDidAppear:(BOOL)animated{
self.hidesBottomBarWhenPushed = YES;
}
(注意这里不是在C里面加入这个代码,否者是没有效果的)
同样,要让从C pop回B的时候,继续显示出tabbar,同样就需要在B Disappear的时候加入=NO的代码。
- (void)viewDidAppear:(BOOL)animated{
self.hidesBottomBarWhenPushed = YES;
}
(注意这里不是在C里面加入这个代码,否者是没有效果的)
同样,要让从C pop回B的时候,继续显示出tabbar,同样就需要在B Disappear的时候加入=NO的代码。
相关文章推荐
- 隐藏tabbar的方法,self.hidesBottomBarWhenPushed
- iOS跳转界面时隐藏tabBar的方法:hidesBottomBarWhenPushed
- tabBar隐藏与显现 hidesBottomBarWhenPushed
- 解决使用hidesBottomBarWhenPushed隐藏tabbar造成的黑条问题
- hidesBottomBarWhenPushed隐藏底部TabBar时push的VC出现白色遮挡问题
- tabBar隐藏与显现 hidesBottomBarWhenPushed
- storyboard设置hidesBottomBarWhenPushed时 界面跳转时tabbar会延迟一下再消失问题解决 以及设置后跳转navBar显示问题
- hidesBottomBarWhenPushed导航栏的隐藏
- [iOS]用hidesBottomBarWhenPushed属性实现隐藏BottomBar时候的的几个坑!
- tabBar隐藏动画,hidesBottombarWhenPushed
- IOS中hidesBottomBarWhenPushed显示隐藏的问题
- 解决 RaisedCenterTabBar 在 HidesBottomBarWhenPushed bug
- 问题: hidesBottombarWhenPushed多级push不显示tabbar
- hidesBottombarWhenPushed的隐藏与显示问题
- iOS:hidesBottomBarWhenPushed的正确用法
- iOS:hidesBottomBarWhenPushed的正确用法
- hidesBottombarWhenPushed的副作用
- How can I work around hidesBottomBarWhenPushed acting weird with the iOS 6 SDK?
- hidesBottomBarWhenPushed的用法。
- iOS:hidesBottomBarWhenPushed的正确用法