Can anyone explain me self.timer=nil
vs [self.timer invalidate]
?
What exactly happens at the memory location of self.timer
?
In my code
self.timer=nil
doesn't stops the timer but
[self.timer invalidate]
stops the timer.
If you require my code I will update that too.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…