How to stop NSTimer

后端 未结 7 618
我寻月下人不归
我寻月下人不归 2020-12-03 06:33

Hey so i am just making an example application and i am having a little trouble, So i have a table view and then i have a few rows and when a user clicks a row it takes them

7条回答
  •  北海茫月
    2020-12-03 07:18

    like this:

    [yourtimername invalidate];
    

    But be careful, you cant stop the timer if it's already stopped because your app will crash.

提交回复
热议问题