let vc =UIStoryboard(name:"Main", bundle:nil).instantiateInitialViewController() as UIViewController!
self.presentViewController(vc, animated:true) {
}
"Main"为跳转的目标Storyboard
如果要跳到指定的vc2:instantiateViewControllerWithIdentifier("vc2")
需要设置vc2的storyboardID为vc2(名称随意)
网友评论