浅谈NSTimer基本用法和循环引用问题
浅谈NSTimer基本用法和循环引用问题
相信大家对NSTimer不陌生,定时器是我们项目中经常用到的组件,定时去完成某项任务。下面我们来简单介绍一下NSTimer。
一、NSTimer基本原理
官方文档对NSTimer的介绍:
A timer waits until a certain time interval has elapsed and then fires,
sending a specified message to a target object.
由此可见,NSTimer就是
原创
2021-04-26 19:45:05 ·
619 阅读 ·
0 评论