【发布时间】:2016-05-05 21:14:47
【问题描述】:
我正在开发一个快速应用程序。我需要当我单击表格内的一个项目时,它会打开一个新视图。这很好并且可以工作,但是标签栏的底部按钮仍然存在。这个消失怎么办?
用于调用下一个屏幕的代码。我已经测试了一些不同的方法,但这是唯一可以正常工作的方法。我认为这不是这里的问题。
func irParaMarcacoes(nome:String){
let next:ViewMarcacaoController = storyboard?.instantiateViewControllerWithIdentifier("ViewMarcacaoController") as! ViewMarcacaoController
next.projNome = nome;
self.navigationController?.pushViewController(next, animated: true)
}
This is what I have, the first screen
This is what I want the tap bar to disappear
感谢您的关注。
*使用 XCode 7.3
【问题讨论】:
-
这不是导航栏,你试图隐藏的是标签栏。在 viewDidLoad() 中尝试 self.tabBarController?.tabBar.hidden = true
-
是的!这是正确的!这是点击栏!刚刚编辑。谢谢
标签: ios iphone xcode swift xcode7