天天看點

基于dispatch_after封裝YXTimer

基于dispatch_after封裝yxtimer

基于dispatch_after封裝YXTimer

本人根據dispatch_after封裝了一個定時器,支援block以及代理的方式來激活定時器,适用于對精度要求低,耗時短的地方,高端大氣上檔次,低調奢華有内涵:)

基于dispatch_after封裝YXTimer

源碼:

yxtimer.h 與 yxtimer.m

使用源碼:

需要注意的地方:

基于dispatch_after封裝YXTimer
基于dispatch_after封裝YXTimer