ios tabbar隐藏
2016-07-11 17:48
302 查看
//1.设置self.tabBarController.tabBar.hidden=YES;
//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
NextViewController *next=[[NextViewController alloc]init];
[self.navigationController pushViewController:next animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后设置self.hidesBottomBarWhenPushed=NO;
//这样back回来的时候,tabBar会恢复正常显示。
//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
NextViewController *next=[[NextViewController alloc]init];
[self.navigationController pushViewController:next animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后设置self.hidesBottomBarWhenPushed=NO;
//这样back回来的时候,tabBar会恢复正常显示。
相关文章推荐
- 阿里weex研究iOS(一)playground内容空白问题
- 自定义导航栏
- IOS AFNetworking 更新上传进度条
- iOS多线程--下(GCD)
- iOS 获取本地的坐标
- 入驻CSDN博客
- OC方法、属性
- 单例的PCH宏定义
- Masonry基本用法
- iOS 键盘类型
- iOS webView与H5的交互(返回页面的处理)
- Cannot create an NSPersistentStoreCoordinator with a nil model 问题解决
- iOS 发送的位置能调用本机地图导航资料整理
- ios xib或storyBoard的那些小方法
- iOS 动画大全(附带gif图片效果)
- iOS富文本(NSAttributedString)---尽力弄全了
- iOS -- MVC的理解
- iOS: FFmpeg的使用二
- iOS开发小记(十四)
- GitHub上值得关注的iOS开源项目