Programmatically navigate to another view controller/scene

后端 未结 19 3016
一向
一向 2020-11-27 11:29

I got an error message during navigating from first view controller to second view controller. My coding is like this one

let vc = LoginViewController(nibNam         


        
相关标签:
19条回答
  • 2020-11-27 12:19

    Swift 4.0.3

     @IBAction func registerNewUserButtonTapped(_ sender: Any) {
    
            print("---------------------------registerNewUserButtonTapped --------------------------- ");
    
            let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
    
            let nextViewController = storyBoard.instantiateViewController(withIdentifier: "RegisterNewUserViewController") as! RegisterNewUserViewController
            self.present(nextViewController, animated:true, completion:nil)
    
        }
    

    Change our Controller Name RegisterNewUserViewController

    0 讨论(0)
提交回复
热议问题