Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Test Before segue push

I'm trying to do some tests in my multiview application before performing a segue push.

when the user push a button, it performs a test, if it's ok : the next view is loaded, if not i do not want to load the next view (stay on the first view or load an other)

Is there a way to do that ?

Xcode 4.3.1

like image 512
Ali Avatar asked Dec 03 '25 06:12

Ali


1 Answers

If the test is ok, you can trigger the segue with performSegueWithIdentifier:sender:, and if it's not ok just do nothing or push another view controller.

like image 131
rdelmar Avatar answered Dec 05 '25 23:12

rdelmar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!