I'm trying to record the number of taps made on a button and depending on number of taps a user would get deferent results, I'm having problem with the 1st part, here is my code:
I get:
error: expected ')' before 'button'
button is an IBOutlet for UIButton.
Code:
- (void)touchesBegan:(NSSet *)touches touchesForView:(button *)view {
NSUInteger numTaps = [[touches anyObject] tapCount];
myTextFeild.text = [NSString stringWithFormat:@"%i", numTaps];
}
I get:
error: expected ')' before 'button'
button is an IBOutlet for UIButton.