logo
  • 教程列表
  • SO官方文檔
  • 故事板
    • 初始化
    • 獲取初始 ViewController
    • 獲取 ViewController
  1. StackOverflow 文件
  2. iOS 教程
  3. 故事板
  4. 獲取 ViewController

獲取 ViewController

Created: November-22, 2018

//Swift    
let viewController = storyboard.instantiateViewControllerWithIdentifier("identifier")

//Objective-c
UIViewController *viewController = [storyboard instantiateViewControllerWithIdentifier:@"identifier"];
  • 獲取初始 ViewController

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明