setScoreTimer = [NSTimer timerWithTimeInterval:0.02
target:self
selector:@selector(drawScore:)
userInfo:nil
repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:setScoreTimer forMode:NSRunLoopCommonModes];
setScoreTimer = [NSTimer timerWithTimeInterval:0.02
target:self
selector:@selector(drawScore:)
userInfo:nil
repeats:YES];
[[NSRunLoop currentRunLoop] addTimer:setScoreTimer forMode:NSRunLoopCommonModes];
本文标题:不卡的timer,runloop
本文链接:https://www.haomeiwen.com/subject/sprzfjtx.html
网友评论