Hi everyone,
I'm creating a small stop watch with UIImageViews for the digits.I have 2 views controllers.One is the main view controller and when you press the "Stop Watch" button it loads the 2nd view controller with stop watch.I have created a NSTimer like this....
timerMain = [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(setDigitImages) userInfo:nil repeats:YES];
Inside setDigitImages method, I change the digits and when stop button is pressed, I stop the timer like this...
[timerMain invalidate];
[timerMain release];
timerMain = nil;
I started the timer and stopped it and went back to the main view controller.When I do this 5 to 6 times, the digit changing slows down. Can anyone help with this?....
Thanks....