Programmatically navigate to another view controller/scene

后端 未结 19 3234
一向
一向 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:58

    See mine.

    func actioncall () {
        let loginPageView = self.storyboard?.instantiateViewControllerWithIdentifier("LoginPageID") as! ViewController
        self.navigationController?.pushViewController(loginPageView, animated: true)
    }
    

    If you use presenting style, you might lose the page's navigation bar with preset pushnavigation.

提交回复
热议问题