发布网友 发布时间:2023-10-24 02:11
共3个回答
热心网友 时间:2024-12-03 04:35
CADisplayLink *displayLink = [CADisplayLink displayLinkWithTarget:self selector:@selector(timerFired:)];displayLink.frameInterval = 2;[displayLink addToRunLoop:[NSRunLoop currentRunLoop] forMode:NSDefaultRunLoopMode];热心网友 时间:2024-12-03 04:35
A CADisplayLink object is a timer object that allows your application to synchronize its drawing to the refresh rate of the display.热心网友 时间:2024-12-03 04:36
maybe this will help. http://developer.apple.com/library/ios/#technotes/tn2169/_index.html