I'm newbie to develop iOS program and I need your help.
When i click on the button, my code checks a condition, if the condition is true, I want to access to the next UIViewController
passing data with prepareForSegue
, but if the condition is FALSE
, I don't want to access to the next VC
and stay on the current VC
.
How could i do that?
When i click on my button, I directly access to the next VC
, whatever the code in the IBAction
. Is it possible to block the access?
I try to code that on a push button
- (IBAction)lancepartie:(id)sender {
...