how to prevent segue in PrepareForSegue method

GasaiYunoGasaiYuno CNMember

how to prevent segue in PrepareForSegue method

Posts

  • GasaiYunoGasaiYuno CNMember

    I want to do validation on my textfield and if validation is failed I have to stop segue and throw an alert.

  • MichaelBluesteinMichaelBluestein ✭✭✭ USInsider, University, Developer Group Leader ✭✭✭

    Override ShouldPerformSegue and return false to cancel the segue.

Sign In or Register to comment.