Storyboard间跳转

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

self.presentViewController(vc, animated:true) {

}

"Main"为跳转的目标Storyboard



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

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

你可能感兴趣的:(Storyboard间跳转)