本文共 2135 字,大约阅读时间需要 7 分钟。
UCZProgressView
UCZProgressView is a circular progress indicator with cool animations for image loading.
UCZProgressView是一个圆形进度条指示器,包含了非常酷炫的动画效果.
This progress view is inspired by .
这个进度指示器效果的灵感来自于 .
IB_DESIGNABLE
and IBInspectable
) 完整的支持支持IB UI_APPEARANCE_SELECTOR 完整的支持UI_APPEARANCE_SELECTOR
self.progressView = [[UCZProgressView alloc] initWithFrame:self.view.bounds];self.progressView.translatesAutoresizingMaskIntoConstraints = NO;[self.view addSubview:self.progressView]; NSDictionary *views = NSDictionaryOfVariableBindings(_progressView); [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]]; [self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]];
YES
)显示进度条
self.progressView.progress = 0.7;
显示指示器的文本
self.progressView.showsText = YES;
指示器的颜色以及文本的颜色
self.progressView.showsText = YES;self.progressView.tintColor = [UIColor blueColor];
文本的颜色
self.progressView.showsText = YES;self.progressView.tintColor = [UIColor blueColor];self.progressView.textColor = [UIColor redColor];
圆角值
self.progressView.radius = 40.0;
线条宽度
self.progressView.lineWidth = 6.0;
模糊背景
self.progressView.blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];
iOS 5 or later
iOS 5 以及以上
UCZProgressView is available through . To install it, simply add the following line to your Podfile:
pod 'UCZProgressView'
你可以通过CocoaPods安装
kishikawa katsumi,
UCZProgressView is available under the MIT license. See the LICENSE file for more info.
转载地址:http://qthba.baihongyu.com/