页面跳转隐藏TabBar
2016-12-28 22:37
197 查看
//1.设置self.tabBarController.tabBar.hidden=YES;
self.tabBarController.tabBar.hidden=YES;
//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
[self.navigationController pushViewController:commentView animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后设置self.hidesBottomBarWhenPushed=NO;
//这样back回来的时候,tabBar会恢复正常显示。
self.tabBarController.tabBar.hidden=YES;
//2.如果在push跳转时需要隐藏tabBar,设置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
[self.navigationController pushViewController:commentView animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后设置self.hidesBottomBarWhenPushed=NO;
//这样back回来的时候,tabBar会恢复正常显示。
相关文章推荐
- 两种方法实现类微博tabBar,并跳转页面隐藏
- 解决iOS跳转页面时,把 tabbar 隐藏了,但是在跳转的时候 还会有 tabbar 的白色痕迹的办法
- 解决UINavigationController+UITabbar跳转页面隐藏tabbar的一种方法
- Framework7跳转页面如何自动隐藏工具栏(no-tabbar)
- iOS中跳转控制器隐藏底部tabBar
- iOS实战演练之跳转界面时隐藏tabBar的方法
- IOS 点击tabbaritem跳转到一个新界面,且隐藏tabbar
- iOS页面之间跳转隐藏UITabbar
- 隐藏 tabbar 时 页面view frame设置
- tabs页面跳转子页面,隐藏tabs;返回tabs页面,显示tabs问题
- 微信小程序 跳转至tabbar页面
- 当从一个页面push 到下个页面时,隐藏tabBar的方法:
- (iOS开发)页面间跳转时隐藏ToolBar
- 登录页面跳转到首页(含有tabBar)
- push页面后隐藏tabbar,pop后显示tabbar
- 微信小程序 跳转至tabbar页面
- iOS跳转延迟,跳转隐藏tabbar
- iOS-非父子控制器跳转(如:从某一导航控制器的子页面跳转到另一个tabbar控制的页面)
- iOS跳转界面时隐藏tabBar的方法
- iOSiOS UINavigationBar跳转页面的导航条隐藏或者出现空挡不完整