Swift 我怎样才能推到另一个屏幕?

Swift 我怎样才能推到另一个屏幕?,swift,modal-dialog,push,screen,Swift,Modal Dialog,Push,Screen,用于推送您的故事板id: 别忘了用你的名字替换故事板id和VC名称 let modalVC = messageViewController.instantiateViewControllerwithIdentifier(self.storyboard!) self.present(modalVC, animated: true, completion: nil) 这个问题已经有很多答案了SO@V_rohit我同意你们的想法,但若用户在这里提问,我已经给出了答案供他参考。谢谢你在这个问题上提出意

用于推送您的故事板id:

别忘了用你的名字替换故事板id和VC名称

let modalVC = messageViewController.instantiateViewControllerwithIdentifier(self.storyboard!)
self.present(modalVC, animated: true, completion: nil)

这个问题已经有很多答案了SO@V_rohit我同意你们的想法,但若用户在这里提问,我已经给出了答案供他参考。谢谢你在这个问题上提出意见。
let objAboutTheSessionVC = self.storyboard?.instantiateViewController(withIdentifier: "AboutTheSessionVC") as! AboutTheSessionVC
    self.navigationController?.pushViewController(objAboutTheSessionVC, animated: true)