Tag Archives: 定时器

使用GCD封装一个简单的定时器

1、GCD定时器实现的基础代码

1
2
dispatch_source_t timer = dispatch_source_create(DISPATCH_SOURCE_TYPE_TIMER, 0, 0, );
dispatch_source_set_timer(timer, DISPATCH_TIME[......]<p class="read-more"><a href="https://www.yusian.com/blog/project/2018/11/30/1106431446.html">继续阅读</a></p>