what is the first step in (NSTimer release and invalidate)?

前端 未结 4 1220
深忆病人
深忆病人 2021-02-10 03:29

Can I send argument with @selector in NSTimer? If I want to release NSTimer, are the following steps right in dealloc?

<
4条回答
  •  忘了有多久
    2021-02-10 04:20

    That is the correct way to deallocate a timer that might still be running (and you want to stop).

提交回复
热议问题