How to check if NSTimer has been already invalidated

前端 未结 4 2010
长情又很酷
长情又很酷 2021-02-19 19:07

I have a NSTimer object that I need to invalidate if a user taps on a button or if they exit a view.

So I have:

[myNSTimer invalidate];
         


        
4条回答
提交回复
热议问题