I have a NSTimer object that I need to invalidate if a user taps on a button or if they exit a view.
NSTimer
So I have:
[myNSTimer invalidate];
Swift:
if timer.valid { timer.invalidate() }