【问题标题】:How can I push to another screen? [duplicate]如何推送到另一个屏幕? [复制]
【发布时间】:2018-04-17 11:00:40
【问题描述】:
let modalVC = messageViewController.instantiateViewControllerwithIdentifier(self.storyboard!)
self.present(modalVC, animated: true, completion: nil)

【问题讨论】:

标签: swift modal-dialog push screen


【解决方案1】:

用于推送您的故事板 ID:

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

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

【讨论】:

  • 而且这个问题已经有很多关于SO的答案
  • @V_rohit 我同意你的想法,但是,如果用户在这里提问,我已经给出了答案供他参考。感谢您对此提出意见。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-04-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2019-06-13
  • 2010-11-09
相关资源
最近更新 更多