美文网首页
Storyboard间跳转

Storyboard间跳转

作者: AlvinKeung | 来源:发表于2016-07-06 15:09 被阅读23次

let vc =UIStoryboard(name:"Main", bundle:nil).instantiateInitialViewController() as UIViewController!

self.presentViewController(vc, animated:true) {

}

"Main"为跳转的目标Storyboard

如果要跳到指定的vc2:instantiateViewControllerWithIdentifier("vc2")

需要设置vc2的storyboardID为vc2(名称随意)

相关文章

网友评论

      本文标题:Storyboard间跳转

      本文链接:https://www.haomeiwen.com/subject/vxukjttx.html