let vc:UIViewController=self.storyboard?.instantiateViewControllerWithIdentifier("view name") as!UIViewController
//先隐藏回退按钮,然后push 否则无效
vc.navigationItem.hidesBackButton=true
self.navigationController?.pushViewController(vc,animated:true)
原文链接:https://www.f2er.com/swift/325925.html