UINavi中push控制器的时候隐藏TabBar
2016-02-20 19:48
387 查看
当一个UITabbarController管理多个UINavigationController的时候,我们又从这每一个UINavigationController中push一个ViewController的时候,如果不作处理,就会出现推出来的ViewController同样会显示TabBar,怎么样去除呢,很简单,方式如下:
ServiceSubViewController *controller = [[ServiceSubViewControlleralloc]init];
[controller setHidesBottomBarWhenPushed:YES];//加上这句就可以把推出的ViewController隐藏Tabbar
[self.navigationController pushViewController:controller animated:YES];
ServiceSubViewController *controller = [[ServiceSubViewControlleralloc]init];
[controller setHidesBottomBarWhenPushed:YES];//加上这句就可以把推出的ViewController隐藏Tabbar
[self.navigationController pushViewController:controller animated:YES];
相关文章推荐
- leetcode(304) Range Sum Query 2D - Immutable
- 使用 Bluemix™ Live Sync 快速更新 Bluemix 上运行的应用程序实例
- Arduino代码机制-IO
- android小问题--------------------SQLiteDatabase.insert(table, nullColumnHack, values)参数
- scrapy 爬网站 显示 Filtered offsite request to 错误.
- 交换Button中图片与文字的左右位置
- UILabel在Autolayout中的多行显示/动态高度
- 循环中 break 与 continue 的区别
- 分享一款很好的视频处理软件 会声会影X8(huishenghuiyingx8-trial_x64)
- UITableView
- CodeForces 622A Infinite Sequence
- EasyUI系列学习(九)-Panel(面板)
- uiautomatorviewer获取当前屏幕中的各个元素信息包括类名
- 1041. Be Unique (20)
- 【UER #1】跳蚤OS(Trie)
- php中$_REQUEST、$_POST、$_GET的区别和联系小结
- 求php中的request详细用法
- CodeForces 626A Robot Sequence
- RequireJS 与 SeaJS 的异同
- the behavior of the UICollectionViewFlowLayout is not defined because: