如何使用 Swift 在同一项目中创建多个故事板?我知道我必须转到“文件”->“新建”->“文件”,然后选择 Storyboard,但如何将该 Storyboard 集成到我的项目中并在 Swift 代码中导航到新 Storyboard 的视图?
您需要获取所需故事板的参考
let aStoryboard = UIStoryboard(name: "storyboardName", bundle: nil)
然后实例化所需的视图控制器
let vc = aStoryboard.instantiateViewControllerWithIdentifier("viewControllerIdentifier") as! UIViewController