我当前的 View Controller 设置是: 选项卡 View > 导航 Controller > TableView Controller > 导航 View Controller > 单元格详细信息。请参见 The current setup of viewcontrollers
我曾经有过: 选项卡 View > 导航 Controller > TableView Controller > 单元格详细信息 然后一切都很好。
问题是我需要在用户按下后退按钮时发生自定义操作,为此我在“表格 View ”和“单元格详细信息”之间添加了一个导航 Controller 。那就是标签栏消失的时候。我知道这似乎是“正常”行为,但这对我帮助不大。请帮忙。
转到详细 View Controller 的代码。 (我使用 Storyboard,所以这些东西的代码很简单)
@IBAction func add(sender: AnyObject) {
dispatch_async(dispatch_get_main_queue()) {
self.performSegueWithIdentifier("TableViewToDetailView", sender: self)
}
最佳答案
当 hideTabBarOnPush
属性为 true(在代码中)或 Hide Bottom Bar on Push
在 Storyboard上为您推送的 Controller 选中时,会发生这种情况。
关于ios - 为什么标签栏消失了?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37050637/