定时器学习

来源:互联网 发布:福建网络原创女歌手 编辑:程序博客网 时间:2024/09/21 06:37
定时器学习:    //定时器一,1秒以上采用这种定时    [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(setNeedsDisplay) userInfo:nil repeats:YES];    //一秒以上,采用下面这种定时    CADisplayLink *link = [CADisplayLink displayLinkWithTarget:self selector:@selector(setNeedsDisplay)];    [link addToRunLoop:[NSRunLoop mainRunLoop] forMode:NSDefaultRunLoopMode];

0 0
原创粉丝点击