代码跳转(无sb)
var vc = ViewController()
self.presentViewController(vc, animated: true, completion: nil)
return
通过sb
var sb = UIStoryboard(name: "Main", bundle:nil)
var vc = sb.instantiateViewControllerWithIdentifier("VC") as ViewController
//VC为该界面storyboardID,Main.storyboard中选中该界面View,Identifier inspector中修改
self.presentViewController(vc, animated: true, completion: nil)
return
也可以
self.presentViewController( UIStoryboard(name: "SimpleStart", bundle: nil).instantiateInitialViewController()!,
animated: false, completion: nil)