1
在另一个文件中,我创建我的观点从另一个故事板控制器的一个实例,并展示它像这样:导航栏呈现View时不显示?
let viewController:UIViewController = UIStoryboard(name: "UserProfile", bundle: nil).instantiateViewControllerWithIdentifier("profileID") as! ProfileViewController
self.presentViewController(viewController, animated: true, completion: nil)
在我的故事板我有一个UINavigationController正确的故事板ID和嵌入式我的视图控制器。我还将初始视图控制器设置为UINavigationController。
为什么不显示?
完美工作,谢谢! –
你也可以使用objective-c来做同样的事情。 –