Perform segue after Login successful in Storyboards

后端 未结 3 1632
梦如初夏
梦如初夏 2020-12-03 20:51

I have 2 UITextFields, one of them for Login and the another for the Password.

Only if the Login is \"succesful\", I want to perform the Segue

3条回答
  •  心在旅途
    2020-12-03 21:02

    You need to drag the segue from the overall UIViewController to the next UIViewController, i.e. you shouldn't specifically connect the UIButton (or any IBOutlet for that matter) to the next UIViewController if the transition's conditional.

    Like so:

    enter image description here

提交回复
热议问题