Je dois avoir un minuteur en arrière-plan qui est appelé par l'application est entré en méthode de fond. J'ai quelques problèmes. Quand j'entre en arrière-plan, il ne fait rien. Voici mon code.Est-il possible d'avoir une minuterie en arrière-plan?
- (void)applicationDidEnterBackground:(UIApplication *)application {
bcheckingTimer = [NSTimer scheduledTimerWithTimeInterval:5 target:self selector:@selector(bchecker) userInfo:nil repeats:YES];
}
- (void)bchecker {
NSLog(@"Switch is on, will annoy");
}