objective-c 定时运行和取消
摘要:
[self performSelector:@selector(handleKeyPressAndHold:) withObject:nil afterDelay:0.5];0.5秒之后运行handleKeyPressAndHold函数如果0.5内要取消运行,[NSObject cancelPreviousPerformRequestsWithTarget:self selector:@selector(handleKeyPressAndHold:) object:nil]; 阅读全文
posted @ 2012-09-12 15:16 barani 阅读(314) 评论(0) 推荐(0) 编辑