实现圆形仪表盘样式进度条
应用介绍
这是一个实现支持圆形仪表盘样式进度条效果案例,源码LineProgressView,实现圆形仪表盘样式进度条。支持多项属性的自定义包括数量、颜色、圆弧角度、延迟等等。 使用方法: 将demo中的文件夹LineProgressView复制到自己的项目中就可以使用: LineProgressView *lineProgressView = [[LineProgressView alloc] initWithFrame:CGRectMake((kWindowWidth-235.0)/2.0, 50, 235.0, 235.0)]; lineProgressView.backgroundColor = RGB(0.0, 151.0, 224.0); lineProgressView.delegate = self; lineProgressView.total = 54; lineProgressView.color = RGB(0.0, 124.0, 188.0); lineProgressView.radius = 105; lineProgressView.innerRadius = 93; lineProgressView.startAngle = M_PI * 0.72; lineProgressView.endAngle = M_PI * 2.28; lineProgressView.animationDuration = 2.0; lineProgressView.layer.shouldRasterize = YES; [self.view addSubview:lineProgressView]; [lineProgressView setCompleted:1.0*lineProgressView.total animated:YES];

©软件著作权归作者所有。本站所有内容均来源于网络,不得违法使用,仅供学习使用,请支持正版!
转载请注明出处: 662P » 实现圆形仪表盘样式进度条
发表评论 取消回复