Here is my code
[NSTimer scheduledTimerWithTimeInterval:0
target:self
selector:@selector(t:)
userInfo:endtime
repeats:YES ];
-(void)t:(NSTimer *)timer
{
if ([timer.userInfo timeIntervalSinceNow] < 0) {
[timer invalidate];
}
Is it possible to set the time between calls to t method, because the default is too fast for me ?
Right now you’re passing 0 for the interval. Use a larger value for a longer interval:
This schedules the timer to fire every 60 seconds.