Sunday, April 12, 2009

NSTimer检测不到按键的解决办法

在Timer的执行函数最后加上这段代码就可以了。

[[NSRunLoop currentRunLoop] runUntilDate: [NSDate distantPast]];

No comments:

Post a Comment