Invalidating NSTimer
问题 I have 4 NSTimers objects in my app , that make requests to a rest URL every few seconds. On clicking of a particular button I want to stop the timer so that it stops polling and on click of another button I want to resume polling. I have tried invalidate for all timers but does not work. NOTE: All timers are in different class and I'm trying to invalidate the timers in another class Any help will be appreciated , thank you. class NotificationViewController:UIViewController { var timer