在代码中创建ViewController2的方法
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
let second = storyboard.instantiateViewControllerWithIdentifier("Second")
在代码中创建ViewController2的方法
let storyboard = UIStoryboard(name: "Main", bundle: NSBundle.mainBundle())
let second = storyboard.instantiateViewControllerWithIdentifier("Second")
本文标题:32.storyboard的视图控制器在代码中调用方法
本文链接:https://www.haomeiwen.com/subject/plgcjttx.html
网友评论