31 lines
838 B
Objective-C
31 lines
838 B
Objective-C
//
|
||
// LXCountTimer.h
|
||
// Elastagen
|
||
//
|
||
// Created by lianxiang on 2018/8/12.
|
||
// Copyright © 2018年 jijia. All rights reserved.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
|
||
@interface LXCountTimer : NSObject
|
||
/**
|
||
* 用时间戳倒计时
|
||
* starTimeStamp 开始的时间戳
|
||
* finishTimeStamp 结束的时间戳
|
||
*/
|
||
-(void)countDownWithStratTimeStamp:(long)starTimeStamp finishTimeStamp:(long)finishTimeStamp completeBlock:(void (^)(NSInteger day,NSInteger hour,NSInteger minute,NSInteger second))completeBlock;
|
||
-(void)countDownWithtimerInterval:(NSTimeInterval)timerInterval completeBlock:(void (^)(NSInteger day, NSInteger hour, NSInteger minute, NSInteger second))completeBlock;
|
||
|
||
/**
|
||
* 每秒走一次,回调block
|
||
*/
|
||
-(void)countDownWithPER_SECBlock:(void (^)(void))PER_SECBlock;
|
||
|
||
/**
|
||
* 销毁倒计时
|
||
*/
|
||
-(void)destoryTimer;
|
||
|
||
@end
|