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

前端 未结 4 1221
深忆病人
深忆病人 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:21

    Always, release is the last thing you do. Once you release something there is no guarantee it is safe to dereference the object, which means it no longer safe to send it ANY message.

提交回复
热议问题