且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在iPhone中安排任务

更新时间:2022-10-31 13:59:38

我认为这是一种很好的使用方法.您可以定义对象及其选择器,以便在一段时间后,计时器将调用类似 [targer performSelector:aSelector];

I think this is one of the good methods to use. You can define the object and its selector so that after a period of time, the timer will call something like [targer performSelector:aSelector];

+ (NSTimer *)scheduledTimerWithTimeInterval:(NSTimeInterval)seconds target:(id)target selector:(SEL)aSelector userInfo:(id)userInfo repeats:(BOOL)repeats

查看全文