[ios]延迟执行方法,取消执行方法
延迟执行
[self performSelector:@selector(turnBlue) withObject:nil afterDelay:0.1f];
延迟执行之前可以取消该方法的执行
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(turnBlue) object:nil];
延迟执行
[self performSelector:@selector(turnBlue) withObject:nil afterDelay:0.1f];
延迟执行之前可以取消该方法的执行
[[self class] cancelPreviousPerformRequestsWithTarget:self selector:@selector(turnBlue) object:nil];