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.
Once you have no need to run timer, invalidate timer object, after that no need to nullify its reference.
This is what Apple documentation says: NSTimer