地址:https://github.com/potato512/SYCategory
效果图:
代码示例:
// 倒计时
+ (void)timerGCDWithTimeInterval:(NSTimeInterval)time maxTimerInterval:(NSInteger)maxTime afterTime:(NSTimeInterval)afterTime handle:(void (^)(NSInteger remainTime))handle
{
if (0 >= maxTime)
{
return;
}
__block NSTimeInterval countdownTime = maxTime;
dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORIT