Programmatically navigate to another view controller/scene

后端 未结 19 3285
一向
一向 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 11:56

    I think you are looking for something like this:

    let signUpViewController = SignUpViewController()
    present(signUpViewController, animated: true, completion: nil)
    

    If you want full screen of the new page:

    present(signUpViewController, animated: true, completion: nil)
    

    Hope this helps :)

提交回复
热议问题