UCZProgressView是一个带有酷炫动画的圆形进度指示器,用于图片加载。
此进度视图灵感来自Michaël Villar的运动效果 08-Photo Loading。
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.indeterminate = 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 或更高版本
UCZProgressView可通过CocoaPods获取。要安装,只需简单地将以下行添加到您的Podfile中
pod 'UCZProgressView'
kishikawa katsumi,[email protected]
UCZProgressView在MIT许可证下提供。更多信息请参阅LICENSE文件。