Hi there, I have a simple routine to count everytime the user clicks a button.
However the integer (numberOfClicks) increments by four each time. Could the event be happening more than once for each user tap?
(btw the action method below is connected to the 'touch up inside' action)
- (IBAction)myButtonClicked
{
numberOfClicks+=1;
NSString *clicks = [NSString stringWithFormat:@"number of clicks = %d", numberOfClicks];
myLabel.text = clicks;
}
Many Thanks, Chris