0
timer =[NSTimer scheduledTimerWithTimeInterval:5.0
target:self
selector:@selector(onTimer)
userInfo:nil
repeats:YES];
可以将scheduledTimerWithTimeInterval更改为当天的特定时间吗?在不改变我已有的很多代码的情况下?将时间间隔从5秒改变为特定时间
只要注意,如果应用程序是不是* *运行在特定的时间,你会不会被解雇 - 所以不要指望这样的“长期“事件。 – Brad 2010-11-11 01:07:24