美文网首页
Swif页面跳转

Swif页面跳转

作者: 彧哥哥 | 来源:发表于2017-04-14 14:30 被阅读0次

//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页面跳转

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