NSTimer sometimes freezes when app is doing heavy computation
问题 I'd like to animate some loading points while the app is doing some computation in the background. I achieve this via an NSTimer : self.timer = [NSTimer scheduledTimerWithTimeInterval:0.3f target:self selector:@selector(updateLoadingPoints:) userInfo:nil repeats:YES]; Unfortunately, sometimes, when the computation becomes pretty heavy, the method is not fired and the updating therefore doesn't happen. It seems like all the firing is in a queue which is fired after the heavy computation. Is