标签:
- (void)starButtonClicked:(id)sender
{
//先将未到时间执行前的任务取消。
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(todoSomething:) object:sender];
[self performSelector:@selector(todoSomething:) withObject:sender afterDelay:0.2f];
}
http://blog.csdn.net/fengsh998/article/details/11112885
标签:
原文地址:http://www.cnblogs.com/javastart/p/4990491.html