Because of the needs of the new project, need to draw a circular chart, because have not touched this kind of (I am a rookie), to Cocochina Mountain found a case, personally think can also, share
GitHub Address Https://github.com/zhouxing5311/ZZCircleProgress
This is very simple to use.
The author opens up a number of interfaces that can be changed to suit your needs
The general is to declare a tired class on OK
The implementation of the code is as follows
Maybe my code is a little different, I added some elements myself.
//no small dots, same animation timeSelf.zzcircleprogress = [[Zzcircleprogress alloc] Initwithframe:cgrectmake ((jdryscreewidth*0.75)+9, -, -, -) Pathbackcolor:back_color Pathfillcolor:blue_color startangle: theStrokewidth:4]; Self.zzCircleProgress.showPoint=NO; Self.zzCircleProgress.notAnimated=YES; Self.zzCircleProgress.progress=0.9; Self.zzCircleProgress.fontSize=16.0;//Self.zzCircleProgress.animationModel = circleincreasebyprogress;Self.zzCircleProgress.textColor =Blue_color; Self.zzCircleProgress.labelStr= [NSString stringWithFormat:@"%d%%", (int) (Self.zzCircleProgress.progress * -)]; [Self addSubview:self.zzCircleProgress];
IOS Draw Ring Chart