Swift performSegueWithIdentifier not working

后端 未结 8 1526
礼貌的吻别
礼貌的吻别 2020-12-01 04:13

I am trying to switch view controllers after a user successfully logs in to their account, but it is not working correctly. I cant use a segue directly because if the login

8条回答
  •  感动是毒
    2020-12-01 04:51

    Make sure you're putting your: self.performSegue(withIdentifier: ..., ...)

    in viewDidAppear or later. It won't work in viewWillAppear or viewDidLoad.

提交回复
热议问题