NSTimer not working while dragging a UITableView
问题 I have an application with a countdown timer. I've made it with a label that is updated with a function called from a timer this way: ... int timeCount = 300; // Time in seconds ... NSTimer *myTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(actualizarTiempo:) userInfo:nil repeats:YES]; ... - (void)actualizaTiempo:(NSTimer *)timer { timeCount -= 1; if (timeCount <= 0) { [timer invalidate]; } else { [labelTime setText:[self formatTime:timeCount]]; } } Note: