/ZFProgressView

A simple digit progress view.

Primary LanguageObjective-C

ZFProgressView

A simple digit progress view.

Version 1.1 加入不同进度样式

ZFProgressViewStyleNone, //默认样式
ZFProgressViewStyleSquareSegment, //方形格子进度条
ZFProgressViewStyleRoundSegment, //圆形格子进度条

Example:

Version 1.1

Add "ZFProgressViewStyle"

##How to use ZFProgressView?

Add "ZFProgressView.h" and "ZFProgressView.m" in your project. Then

ZFProgressView *progress = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 150, 100, 100)];

With Style

ZFProgressView *progress = [[ZFProgressView alloc] initWithFrame:CGRectMake(50, 150, 100, 100) 
                                                            style:ZFProgressViewStyleRoundSegment];

###1. setProgressStrokeColor

[progress setProgressStrokeColor:[UIColor orangeColor]];

###2. setBackgroundStrokeColor

[progress setBackgroundStrokeColor:[UIColor yellowColor]];

###3. setDigitTintColor

[progress setDigitTintColor:[UIColor greenColor]];

###4. use an animation to show digit progress

[progress setProgress:0.8 Animated:YES];
or
[progress setProgress:0.8 Animated:NO];