hide tab bar in view with push(使用推送在视图中隐藏标签栏)
问题描述
我有一个 tabBar + NavigationViewController.Tab bar 具有带有单元格的集合视图(例如 view1),并且带有单元格的推送 seague 被实现到另一个视图(例如 view2).
I have a tabBar + NavigationViewController. The Tab bar has collection view with cells(Say view1) and with cells a push seague is implemented to another view(Say view2).
在 view2 我想要一个 navBar 但没有标签栏.
我试过了
self.tabBarController?.tabBar.hidden = true,
view2 工作正常,但是当我通过 返回按钮<返回 view1 时/strong> 选项卡仍然隐藏(即使在 view1 类中我在 中添加了 self.tabBarController?.tabBar.hidden = false>viewDidLoad 函数).
it worked fine for view2 but when I went back to view1 by back button the tab was still hidden( even after in view1 class I added self.tabBarController?.tabBar.hidden = false in viewDidLoad func).
如何让标签栏重新出现在 view1 中?
How can i make the tab bar reappear in view1?
我正在快速工作.
推荐答案
确保仅在其选项卡的 ViewController 上选中此选项您希望隐藏的栏.
Make sure to check this option only on the ViewController whose tab bar you wish to be hidden.
感谢 iHarshil 的建议.
这篇关于使用推送在视图中隐藏标签栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:使用推送在视图中隐藏标签栏
基础教程推荐
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- AdMob 广告未在模拟器中显示 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
