You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
公司电脑
c42991e9b1
|
1 year ago | |
---|---|---|
.. | ||
ZYProgressView | 1 year ago | |
LICENSE | 1 year ago | |
README.md | 1 year ago |
README.md
ZYProgressView
Snapshot
Example
To run the example project, clone the repo, and run directory.
Requirements
iOS 8.0
or later
Installation
ZYProgressView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "ZYProgressView"
Useage
Line
初始化
ZYLineProgressView *progressView = [[ZYLineProgressView alloc] initWithFrame:CGRectMake(20, 150, 200, 6)];
更新进度
progressView.progress = 0.8;
更新配置
[progressView updateConfig:^(ZYLineProgressViewConfig *config) {
config.isShowDot = YES;
}];
Circle
初始化
ZYCircleProgressView *progressView = [[ZYCircleProgressView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
更新进度
progressView.progress = 0.3;
更新配置
[progressView updateConfig:^(ZYCircleProgressViewConfig *config) {
config.lineWidth = 3;
config.lineCap = kCALineCapSquare;
config.startAngle = - (M_PI + M_PI_4);
config.endAngle = M_PI_4;
}];
Author
ripper, ripperhe@qq.com
License
ZYProgressView is available under the MIT license. See the LICENSE file for more info.