Hi,
I have a NSTimer which is fired on a button click, such as:
now i want to stop the timer before the actual method is called when a different button is clicked....Meaning, the first button has been pushed and the timer has been fired (5 second delay), but the other button has been pushed and stops the timer in it's track before executing the method.
Is this possible?
I have a NSTimer which is fired on a button click, such as:
Code:
[NSTimer scheduledTimerWithTimeInterval:5.0 target:self selector:@selector(start) userInfo:nil repeats:NO];
now i want to stop the timer before the actual method is called when a different button is clicked....Meaning, the first button has been pushed and the timer has been fired (5 second delay), but the other button has been pushed and stops the timer in it's track before executing the method.
Is this possible?