iOS 进度条 CLDashboardProgressView

码农软件 · 软件分类 · 进度条(Progress) · 2019-06-12 14:26:48

软件介绍

CLDashboardProgressView 是仪表盘样式,圆形,块状进度条 。

image

使用方法:

可使用自动布局或代码添加该控件;
_progress = [[CLDashboardProgressView alloc] initWithFrame:CGRectMake(20, 60, 240, 240)]; _progress.center = CGPointMake([UIScreen mainScreen].bounds.size.width * 0.5, 190); _progress.backgroundColor = [UIColor blackColor];
_progress.outerRadius = 110; // 外圈半径
_progress.innerRadius = 95;  // 内圈半径
_progress.beginAngle = 90;   // 起始角度
_progress.blockAngle = 8;    // 每个进度块的角度
_progress.gapAngle = 2;      // 两个进度块的间隙的角度
_progress.progressColor = [UIColor greenColor]; // 进度条填充色
_progress.trackColor    = [UIColor redColor];   // 进度条痕迹填充色
_progress.outlineColor  = [UIColor grayColor];  // 进度条边框颜色
_progress.outlineWidth  = 2;                    // 进度条边框线宽
_progress.blockCount = 26;   // 进度块的数量
_progress.minValue = 0;      // 进度条最小数值
_progress.maxValue = 100;    // 进度条最大数值
_progress.currentValue = 10; // 进度条当前数值
_progress.showShadow = YES;       // 是否显示阴影
_progress.shadowOuterRadius = 85; // 阴影外圈半径
_progress.shadowInnerRadius = 10; // 阴影内圈半径
_progress.shadowFillColor = [[UIColor grayColor] colorWithAlphaComponent:0.3];   // 阴影颜色
_progress.autoAdjustAngle = YES;  // 自动调整角度,使开口向下
[self.view addSubview:_progress];

本文地址:https://www.codercto.com/soft/d/7814.html

程序员修炼之道

程序员修炼之道

Andrew Hunt、David Thomas / 马维达 / 电子工业出版社 / 2011-1 / 55.00元

《程序员修炼之道:从小工到专家》内容简介:《程序员修炼之道》由一系列独立的部分组成,涵盖的主题从个人责任、职业发展,知道用于使代码保持灵活、并且易于改编和复用的各种架构技术,利用许多富有娱乐性的奇闻轶事、有思想性的例子及有趣的类比,全面阐释了软件开发的许多不同方面的最佳实践和重大陷阱。无论你是初学者,是有经验的程序员,还是软件项目经理,《程序员修炼之道:从小工到专家》都适合你阅读。一起来看看 《程序员修炼之道》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

图片转BASE64编码
图片转BASE64编码

在线图片转Base64编码工具