Pausing an NSTimer

后端 未结 4 1526
孤城傲影
孤城傲影 2021-01-15 19:14

I have a UIView with a UITableView and a UIImageView in it. The UITableView takes up the top half of the UIView

4条回答
  •  [愿得一人]
    2021-01-15 19:50

    You can use the NSTimer's invalidate method to destroy the timer.

    You'll then have to recreate it, as you did in your startTimerThread method, when you return to the view.

提交回复
热议问题