How to run timer thought the app entered background or is terminated
问题 In my app I have a NSTimer, and a selector - (void)TimerCount . I also have a integer int CountNum , and every 0.01 second, it increases by 1 ( CountNum = CountNum + 1 ). Timer = [NSTimer scheduledTimerWithTimeInterval:0.01 target:self selector:@selector(TimerCount) userInfo:nil repeats:YES]; And I want the timer to resume thought the app is terminated or it entered background. How can I do this? 回答1: If your application is terminated , you will not be able to continue processing. To operate