IOS Draw Ring Chart

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.