GiGaMaskTime/GIGA/Common/LXCountTimer/LXCountTimer.h

31 lines
838 B
Objective-C
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// 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