OK, I've managed to create a menu I'm happy with. I want it so when I click Play it calls a function, I'm wondering though, how do I do that?
I've found [bPlay touchesBegan] but I'm not sure what to do with the parameters that it wants.
Can anyone help? Thanks.
EDIT: figured it out with Google
Code for anyone that needs it:
The example code had @selector(bPlay_TouchDown
but it made my app crash, I think it's because my function doesn't have any arguments.
I've found [bPlay touchesBegan] but I'm not sure what to do with the parameters that it wants.
Code:
[bPlay touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event];
Can anyone help? Thanks.
EDIT: figured it out with Google
Code for anyone that needs it:
Code:
[bPlay addTarget:self action:@selector(bPlay_TouchDown) forControlEvents:(UIControlEvents)UIControlEventTouchDown];
- (void)bPlay_TouchDown {
}
The example code had @selector(bPlay_TouchDown