Swif页面跳转

//push方式

self.navigationController.pushViewController(vc, animated:true)

//present方式

self.presentViewController(vc, animated: true, completion: nil)

//显示列表

let sb = UIStoryboard(name:"Main", bundle: nil)
let listController = sb.instantiateViewControllerWithIdentifier("demoList") as! DemoListViewController
self.presentViewController(listController, animated: true, completion: nil)

你可能感兴趣的:(Swif页面跳转)