【发布时间】:2017-06-06 19:52:51
【问题描述】:
在我的故事板上,我在导航控制器中嵌入了一个集合视图控制器。现在从集合视图的单元格中,我以编程方式打开第二个视图控制器(称为 TwoPicsViewController),如下所示:
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
let nextViewController = storyBoard.instantiateViewController(withIdentifier: "TwoPicsViewController") as! TwoPicsViewController
self.present(nextViewController, animated:true, completion:nil)
但是,当我的 TwoPicsViewController 打开时,我根本看不到导航栏。在故事板上,我将 TwoPicsViewController 连接到第一个带有 segue 显示的视图控制器。
我还错过了什么吗?
谢谢
【问题讨论】:
标签: swift uinavigationcontroller uicollectionview uinavigationbar