我使用this tutorial为我的应用程序设置了一系列入职场景,在我的应用程序的其他地方使用TabViewController。当我运行应用程序时,入职场景在底部有一个空白的选项卡栏。
我试过在界面生成器的所有3个视图中勾选"Hide Bottom Bar on Push“:

我也尝试过添加
ViewController、PageViewController和PageContentViewController的override func viewDidLoad()函数的self.hidesBottomBarWhenPushed = true。没有快乐!
我也在相同的地方尝试了self.tabBarController?.tabBar.hidden = true。
Elsewhere我找到了关于这个的引用:
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == "showLogin"{
println("showLogin seque called")
let bottomBar = segue.destinationViewController as LoginViewController
bottomBar.hidesBottomBarWhenPushed = true
bottomBar.navigationItem.hidesBackButton = true
}
}但是,我没有任何命名segues,所以不确定如何识别段。
任何帮助都是令人惊叹的!谢谢
发布于 2015-06-20 19:25:50
要指定Segue名称,请首先选择segue,然后转到Attributes Inspector。下面你可以找到Storyboard Segue,从那里你可以在Identifier Box中提供Identifier name。
谢谢
https://stackoverflow.com/questions/29471264
复制相似问题