IOs: ARC and NSTimer?


There was a following problem with ARC. Used some code in the view:
timer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(timerFireMethod:) userInfo:nil repeats:YES];

The problem begins when the view is deleted in the controller, but the strong reference of the timer does not give her (the vyuha) to leave.

Are there any ways to track when I changed the number of references when using ARC (as before retainCount)?
October 8th 19 at 03:44
1 answer
October 8th 19 at 03:46
The question is irrelevant, the slew timer is placed in:
 [self killTimer];
 [super removeFromSuperview];
-(void) killTimer 
 [timer invalidate];
 timer = nil;

Find more questions by tags iOSProgramming