iOS7 hidesBottomBarWhenPushed
2014-03-28 10:26
218 查看
在TabBar镶嵌nav时,在push时如何隐藏TabBar?
以前总是被搞得焦头烂额,效果还不好,现在iOS7提供了一种新属性hidesBottomBarWhenPushed,默认是NO。当改为YES时,在执行push操作时,TabBar会跟着视图一起滑走,代码很简单,如下:
self.hidesBottomBarWhenPushed =
YES;
MyViewController *vc = [[MyViewController
alloc]
init];
[self.navigationController
pushViewController:vc animated:YES];
self.hidesBottomBarWhenPushed =
NO;
记住最后这句别漏了,不然pop回来你的TabBar就不见了
以前总是被搞得焦头烂额,效果还不好,现在iOS7提供了一种新属性hidesBottomBarWhenPushed,默认是NO。当改为YES时,在执行push操作时,TabBar会跟着视图一起滑走,代码很简单,如下:
self.hidesBottomBarWhenPushed =
YES;
MyViewController *vc = [[MyViewController
alloc]
init];
[self.navigationController
pushViewController:vc animated:YES];
self.hidesBottomBarWhenPushed =
NO;
记住最后这句别漏了,不然pop回来你的TabBar就不见了
相关文章推荐
- 隐藏tabbar的方法,self.hidesBottomBarWhenPushed
- hidesBottombarWhenPushed
- hidesBottombarWhenPushed的副作用
- hidesBottomBarWhenPushed隐藏底部TabBar时push的VC出现白色遮挡问题
- UITabBarController 详解之 hidesBottomBarWhenPushed的正确用法
- hidesBottomBarWhenPushed的正确用法
- IOS 中 hidesBottomBarWhenPushed的用法
- hidesBottombarWhenPushed的副作用
- hidesBottomBarWhenPushed的使用
- [ios]iOS:hidesBottomBarWhenPushed的正确用法
- hidesBottomBarWhenPushed 使用
- tabBar隐藏与显现 hidesBottomBarWhenPushed
- 【转】iOS:hidesBottomBarWhenPushed的正确用法
- tabBar隐藏与显现 hidesBottomBarWhenPushed
- 解决 RaisedCenterTabBar 在 HidesBottomBarWhenPushed bug
- iOS:hidesBottomBarWhenPushed的正确用法
- 问题: hidesBottombarWhenPushed多级push不显示tabbar
- [iOS]用hidesBottomBarWhenPushed属性实现隐藏BottomBar时候的的几个坑!
- hidesBottomBarWhenPushed的用法。
- hidesBottomBarWhenPushed使用的两种(有更多)时候