0

stroyboardIOS:导航条推赛格瑞

每次我执行我的节目(推)Segue公司的文章VC没有其存在的导航栏显示标题或后退按钮后消失。我还检查了导航控制器是否有标题,因为这似乎是某些情况下的解决方案。执行segue的类只是发送信息。类别是一个枚举。

enter image description here

回答

3

你与另一个NavigationController来包装你articleVC。 或者,您可以使用导航控制器来重复使用导航栏,而不是使用segue。

let yourArticleViewController = UIStoryboard(name: "Main", bundle: nil).instantiateViewController(withIdentifier: "articleViewControllerIdentifier") as! ArticleViewController 
self.navigationController?.pushViewController(yourArticleViewController, animated: true) 
+0

视图控制器的标识符是否与故事板ID相同? – Sak6lab

+0

@ Sak6lab这正是那一个 –

+0

很抱歉,什么是“那个”?如果是这样的话,我并不是故意粗鲁地回答这个问题。 – Sak6lab