I have the following code to start a timer:
This does not work!
The result of 60 / 118 = 0.5084745763. If I enter this result as interval it does work. Can someone tell me why this is?
Code:
self.timer = [NSTimer scheduledTimerWithTimeInterval: (60 / 118)
target: self
selector: @selector(timerFiredMethod)
userInfo: nil
repeats: YES];
The result of 60 / 118 = 0.5084745763. If I enter this result as interval it does work. Can someone tell me why this is?