美文网首页
不卡的timer,runloop

不卡的timer,runloop

作者: Milooo | 来源:发表于2024-05-22 11:24 被阅读0次

    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