我怎么能推到另一个屏幕?

时间:2018-04-17 11:00:41

标签: swift modal-dialog push screen

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

1 个答案:

答案 0 :(得分:0)

推送您的故事板ID:

不要忘记用你的名字替换StoryBoard id和VC名称。

let objAboutTheSessionVC = self.storyboard?.instantiateViewController(withIdentifier: "AboutTheSessionVC") as! AboutTheSessionVC
    self.navigationController?.pushViewController(objAboutTheSessionVC, animated: true)