摘要:
例子: CADisplayLink* gameTimer; CADisplayLink* gameTimer; gameTimer = [CADisplayLink displayLinkWithTarget:self selector:@selector(updateDisplay:)]; [ga 阅读全文
posted @ 2016-12-30 15:29
简进祥
阅读(358)
评论(0)
推荐(0)
摘要:
简单的说run loop是事件驱动的一个大循环,如下代码所示int main(int argc, char * argv[]) { //程序一直运行状态 while (AppIsRunning) { //睡眠状态,等待唤醒事件 id whoWakesMe = SleepForWakingUp(); 阅读全文
posted @ 2016-12-30 15:23
简进祥
阅读(248)
评论(0)
推荐(0)