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

  • 關於本站
  • 免責聲明