【发布时间】:2016-08-02 09:10:06
【问题描述】:
在我的应用程序中,我有一个嵌入了Navigation Bar 的登录场景。用户登录后,我将导航到仅嵌入Tab Bar 的家庭场景。对于导航,我使用的是 Segue,这是我的代码:
self.performSegueWithIdentifier("loginSegue", sender: nil)
在下一个场景中 viewDidLoad 我正在尝试 hideBackButton 但它不起作用
我尝试了所有这些代码,但 BackButton 仍然显示 所以这不是重复的问题:
self.navigationItem.leftBarButtonItem = nil
self.navigationController?.navigationItem.leftBarButtonItem=nil
self.navigationItem.hidesBackButton=true
self.navigationController?.navigationItem.hidesBackButton=true
self.navigationItem.setHidesBackButton(true, animated:true);
【问题讨论】: