Swift programmatically set segues

前端 未结 1 598
攒了一身酷
攒了一身酷 2021-01-05 17:50

I have a piece of parse code that checks to see if a user is logged in:

PFUser.logInWithUsernameInBackground(\"myname\", password:\"mypass\") {
  (user: PFUs         


        
相关标签:
1条回答
  • 2021-01-05 18:12

    You can use:

    performSegueWithIdentifier("yourSegueIdentifier", sender: nil)
    

    You dont need to "create" a segue programmatically, just connect your ViewControllers and create a Segue. With performSegueWithIdentifier you can call your segue manually if needed.

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