描述:
A -> B | B -> A
在A中hidesBottomBarWhenPushed = YES,到B了TabBar就隐藏了。
当我从B Pop回来的时候,在ViewWillDisappear中hidesBottomBarWhenPushed = YES,Tabbar还是隐藏了的,怎么破?怎么让回来后Tabbar显示出来?
解决方案1:
呃..竟然是这么久的坑了..今天自己遇到了就来填一下好了, 根据文档的介绍, hidesBottomBarWhenPushed
就是 A Boolean value indicating whether the toolbar at the bottom of the screen is hidden when the view controller is pushed on to a navigation controller. The value of this property on the topmost view controller determines whether the toolbar is visible. If the value of this property is true, the toolbar is hidden. If the value of this property is false, the bar is visible. 重点在于topmost, 当你A压B的时候, B将成为topmost view controller, 将B的hidesBottomBarWhenPushed设为true才是正解.
在viewWillAppear和viewWillDisappear的时候设置
解决方案3:经摸索和总结,出了一篇文,供参考:http://blog.segmentfault.com/isaced/1190000000327529
您可能想查找下面的文章:
- 代码持续更新tableview与用户滑动tableview冲突?
- 为什么NSMutableArray继承于NSArray
- 制作的framework项目含masonry,如何处理避免冲突
- IOS有没有类似安卓的AccessibilityService功能
- UITableViewCell加载多张图片导致内存异常暴增
- iOS,我在Githubfork别人的仓库后更改了代码,可以用CocoaPods把我的仓库加入项目里吗?
- iOS根视图切换到一个新的根视图时,该如何释放之前的根视图?
- 关于时间戳转换为NSDate和标准格式
- iOSAPP后台运行收到推送语音播报无效急急急!!!
- 黑屏屏保ios横屏偶尔一半黑屏的bug是可以解决的吗