Perform Segue from another class with helper function

后端 未结 1 1736
花落未央
花落未央 2020-12-22 05:30

I have two classes, ChargeCustomer and TwelvethViewController. In TwelvethViewController I have a func goNextView() which should pe

相关标签:
1条回答
  • 2020-12-22 06:09

    You have to instantiated the storyBoard that you want then the TwelvethViewController and finally you can push. Like this:

    let storyBoard = UIStoryboard(name: "youStoryBoard", bundle: nil) 
    let vc = storyboard?.instantiateViewController(withIdentifier: "youVCIndentifier") as! TwelvethViewController 
    self.navigationController?.pushViewController(vc, animated: true)
    
    0 讨论(0)
提交回复
热议问题