实现圆形仪表盘样式进度条

时间:2021-04-04 10:36:19
【文件属性】:
文件名称:实现圆形仪表盘样式进度条
文件大小:28KB
文件格式:ZIP
更新时间:2021-04-04 10:36:19
IOS源码 这是一个实现支持圆形仪表盘样式进度条效果案例,源码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];
【文件预览】:
._LineProgressView
LineProgressView
----testLineProgressView.xcodeproj()
--------._xcuserdata(222B)
--------project.xcworkspace()
--------._project.xcworkspace(222B)
--------._project.pbxproj(222B)
--------xcuserdata()
--------project.pbxproj(20KB)
----.DS_Store(6KB)
----testLineProgressView()
--------ViewController.m(1KB)
--------.DS_Store(6KB)
--------._ViewController.h(273B)
--------Info.plist(1KB)
--------main.m(486B)
--------._Images.xcassets(222B)
--------._main.m(273B)
--------._.DS_Store(222B)
--------._Base.lproj(222B)
--------Base.lproj()
--------Constants.h(1KB)
--------Images.xcassets()
--------._AppDelegate.h(273B)
--------._ViewController.m(171B)
--------ViewController.h(418B)
--------AppDelegate.h(429B)
--------._LineProgressView(222B)
--------._AppDelegate.m(273B)
--------._Constants.h(273B)
--------LineProgressView()
--------AppDelegate.m(2KB)
--------._Info.plist(222B)
----._.DS_Store(222B)
----._testLineProgressView.xcodeproj(222B)
----._testLineProgressViewTests(222B)
----._testLineProgressView(222B)
----testLineProgressViewTests()
--------testLineProgressViewTests.m(1KB)
--------Info.plist(750B)
--------._testLineProgressViewTests.m(273B)
--------._Info.plist(222B)

网友评论