mengxianliang / xlcircleprogress Goto Github PK
View Code? Open in Web Editor NEWiOS 圆环进度指示器
iOS 圆环进度指示器
原本代码:
_endPoint.frame = CGRectMake(0, 0, _lineWidth - endPointMargin2,_lineWidth - endPointMargin2);
rect.origin.x = x + endPointMargin;
rect.origin.y = y + endPointMargin;
修改如下:
_endPoint.frame = CGRectMake(self.bounds.size.width/2 - endPointMargin/2, - endPointMargin/2, endPointMargin,endPointMargin);
x -= (_endPoint.bounds.size.width/2.0f - _lineWidth/2.0f);
y -= (_endPoint.bounds.size.width/2.0f - _lineWidth/2.0f);
可以给添加动画一起更像圆形进度
[self.progressLayer addAnimation:pathAnimation forKey:@“progressLayerAnimation”];
[self.endPoint.layer addAnimation:endPointAnimation forKey:@“endPointAnimation”];
可以把颜色方法
@属性(非原子,强)的UIColor * BGCOLOR;
@属性(非原子,强)NSArray * circleColorArray;
@Property(assign,nonatomic)CGFloat lineWidth;
........
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.