THCircularProgressViewiOS 圆形进度条
THCircularProgressView 是一个 iOS 的圆形的进度条。
用法
THCircularProgressView
只是一个UIView
子类,因此只需实例化它,然后将其添加为视图层次结构。初始化程序是:
- (instancetype)initWithCenter:(CGPoint)center radius:(CGFloat)radius lineWidth:(CGFloat)lineWidth progressMode:(THProgressMode)progressMode progressColor:(UIColor *)progressColor progressBackgroundMode:(THProgressBackgroundMode)backgroundMode progressBackgroundColor:(UIColor *)progressBackgroundColor percentage:(CGFloat)percentage
您也可以使用标准-[UIView initWithFrame:(CGRect)frame]
。
它支持两种进度模式:
-
THProgressModeFill
-开始为空,并随着百分比的增加而被填充;(默认) -
THProgressModeDeplete
-开始充满并随着百分比的增加而耗尽;
还可以设置一个标签,以显示进度视图表示的数字。例如:
THCircularProgressView *progress = ...; CGFloat percentage = 0.3f; progress.centerLabel.text = [NSString stringWithFormat:@"%.0f", percentage * 100.0f]; progress.centerLabelVisible = YES; // needed since label is invisible by default
其中的示例项目/Demo
包含一些示例。
评论
ProgressPieSVG圆形进度条
ProgressPieSVG是一个jQuery插件,它可以动态地添加圆形进度条或者扇形进度条来显示百分比。ProgressPieSVG可以自定义并可扩展。
ProgressPieSVG圆形进度条
0
ArcProgressBar圆形进度条
ArcProgressBar是一个可定制的圆形进度条,通过xml参数配置可实现QQ健康中步数的弧形进度显示、仪盘表显示速度、最常见的下载进度条等功能。
ArcProgressBar圆形进度条
0
CircularProgressControliOS 圆形进度条组件
CircularProgressControl是一款简单并能自适应时间的圆形进度条。进度条自定随着时间的消逝而递进,自动的时间显示格式,描述的标题也可以修改。
CircularProgressControliOS 圆形进度条组件
0
CircleProgressBar-Android自定义的圆形进度条
一个界面漂亮功能强大的圆形进度条,支持多种属性,如圆环的大小颜色,进度条的大小颜色,进度条的颜色支持渐变色处理,支持圆环中间显示三层文本,支持文本的大小,颜色设置,几乎完美的解决wrap_conten
CircleProgressBar-Android自定义的圆形进度条
0