Is it possible to cancel a segue in the prepareForSegue:
method?
I want to perform some check before the segue, and if the condition is not true (in this case, if some UITextField
is empty), display an error message instead of performing the segue.