I would like the action to do case 0 the first time it is clicked, then case 1, then 2… etc.
How would I go about that?
Thanks!
- (IBAction) cycleAction{
switch (??????){
case 0:
[self choice1];
break;
case 1:
[self choice2];
break;
case 2:
[self choice3];
break;
default:
break;
}
}
You need an instance variable that keeps track of the next action to perform.