定时器的fireDate指的是触发时间

1.定时器开启后,会在经过设定的时间间隔后才会执行第一次定时操作.而不是立马开启.

1     NSTimer *timer = [NSTimer scheduledTimerWithTimeInterval:60 target:self selector:@selector(onTime) userInfo:nil repeats:NO];

2.定时器的fireDate属性是,当前时间距离下一次要执行定时器方法的时间之间的间隔.

1     NSLog(@"%f",[self.alertTimer.fireDate timeIntervalSinceNow]);

3.

原文地址:https://www.cnblogs.com/lz465350/p/5177803.html