Alright heres the thing, i have created a game that is questions and buttons that can be tapped. At one point in my game the user can answer a ridiculous question right and if he does he gets a skip. the skips just skips a question.
I have two questions really but the most import is the first. my first question is how do i call an action that i created that is present in the appdelegate (btw my entire application takes place in the app delegate).
Code:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1];
QuesIm2.frame = CGRectMake(0, 0, 200, 200);
QuesIm2.alpha = 1.0;
QuesIm2.frame = CGRectMake(431.0, 291.5, 23, 23);
NSString *path = [[NSBundle mainBundle] pathForResource:@"Skip" ofType:@"au"];
SystemSoundID soundID;
AudioServicesCreateSystemSoundID((CFURLRef)[NSURL fileURLWithPath:path], &soundID);
AudioServicesPlaySystemSound (soundID);
CGAffineTransform transform = QuesIm2.transform;
transform = CGAffineTransformRotate(transform, 3.14159);
QuesIm2.transform = transform;
transform = CGAffineTransformRotate(transform, 3.14159);
QuesIm2.transform = transform;
[UIView setAnimationDelay:1];
QuesIm2.alpha = 0.0;
skip1.alpha = 1.0;
QuesIm.alpha=0.0;
/*
how to call an action here
*/
[UIView commitAnimations];
[self.viewController.view addSubview:QuesIm];
[self.viewController.view addSubview:QuesIm2];
[self.viewController.view addSubview:skip1];
this is basically what happens when the user answers the skip question right. but i want to know how to call an action so that i can display the next question.
my second question is more complex. i am trying to figure out i can implement my skip button. since this button can be used whenever it needs to skip the question the user is on by calling the function the function that goes to the next question. my question is how to set up strings or something that could be used to call the function of the proper question.
for example say its question 10 then the skip function would take the question number and then add one to it and then call the function of that number but the thing is that my functions are named -(void)Q10R

id)sender so i would need a way to make the 10 change to any number so that the skip could work for every question.
If i wasn't clear please reply telling me so and again, the first questions is more crucial and important since the skips are just fancy things that the game doesn't necessarily need at this moment.
thank