如何使用 Swift 在同一个项目中创建多个 Storyboard?我知道我必须转到"file"->“新建”->"file",然后选择“ Storyboard”,但如何将该 Storyboard集成到我的项目中并导航到 Swift 代码中新 Storyboard的 View ?
最佳答案
您需要获得对所需 Storyboard的引用
let aStoryboard = UIStoryboard(name: "storyboardName", bundle: nil)
然后实例化所需的 View Controller
let vc = aStoryboard.instantiateViewControllerWithIdentifier("viewControllerIdentifier") as! UIViewController
关于swift - 在 Swift 中添加 Storyboard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34438957/