GiGaMaskTime/GIGA/Modules/Mask/View/MaskTimeCircularProgressView.h

40 lines
1.1 KiB
Objective-C

//
// MaskTimeCircularProgressView.h
// GIGA
//
// Created by lianxiang on 2018/9/3.
// Copyright © 2018年 com.giga.ios. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "SHineLabel.h"
@protocol MaskCirCularProGressViewDelegate<NSObject>
@optional
-(void)updateProgressViewWith:(NSTimeInterval)timeInterval;
-(void)updateProgress;
-(void)progressDidFish;
@end
@interface MaskTimeCircularProgressView : UIView
@property(nonatomic,weak) id<MaskCirCularProGressViewDelegate>delegate;
@property(nonatomic) UIColor *backColor;
@property(nonatomic) UIColor *progressColor;
@property(nonatomic,strong) UILabel *countDownLabel;
@property(nonatomic) NSTimeInterval timeinterval;
@property(nonatomic) CGFloat lineWidth;
@property(nonatomic) BOOL isMoving;
@property (nonatomic,strong) SHineLabel *countLabel;
-(id)initWithFrame:(CGRect)frame
backColor:(UIColor *)backColor
progressColor:(UIColor *)progressColor
lineWidth:(CGFloat)lineWidth
timeinterval:(NSTimeInterval)timeinterval;
-(void)startWith:(NSTimeInterval)time;
-(void)stop;
-(void)pasuse;
@end