logo
  • 教程列表
  • SO官方文档
  • UIStoryboard
    • 以编程方式获取 UIStoryboard 的实例
    • 打开另一个故事板
  1. StackOverflow 文档
  2. iOS 教程
  3. UIStoryboard
  4. 打开另一个故事板

打开另一个故事板

Created: November-22, 2018

let storyboard = UIStoryboard(name: "StoryboardName", bundle: nil)
let vc = storyboard.instantiateViewController(withIdentifier: "ViewControllerID") as YourViewController
self.present(vc, animated: true, completion: nil)
  • 以编程方式获取 UIStoryboard 的实例

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明