Possible en double:
NSTimer doesn't stopIOS: arrêter un NSTimer
J'ai ce code:
[NSTimer scheduledTimerWithTimeInterval:110.0
target:self
selector:@selector(targetMethod:)
userInfo:nil
repeats:YES];
- (void) targetMethod:(NSTimer) timer{
NSLog(@"Hello World");}
à targetMethod je peux arrêter la minuterie avec [invalidate minuterie], mais hors de cette méthode, comment puis-je arrêter targetMethod?