单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
//  GradientProgressView.h
//  screendisplay
//
//  Created by 单军华 on 2018/7/10.
//  Copyright © 2018年 单军华. All rights reserved.
//
 
#import <UIKit/UIKit.h>
 
@interface GradientProgressView : UIView
 
/**
 *  进度 默认是0.65
 */
@property (nonatomic, assign) CGFloat progress;
 
/**
 *  进度条渐变颜色数组,颜色个数>=2
 *  默认是 @[(id)HexColor(0xFDDF76).CGColor, (id)HexColor(0xFEBC19).CGColor];
 */
@property (nonatomic, strong) NSArray *colorArr;
 
/**
 *  进度条背景颜色  默认是 HexColor(0xf2f2f2)
 */
@property (nonatomic, strong) UIColor *bgProgressColor;
 
/**
 *  设置progress时自动更新UI,设置渐变色、背景不更新UI。如需更新,可手动调用此方法
 */
- (void)updateProgressView;
 
@end