Question

I'm trying to create something like this: enter image description here

I looked many resources for that, but I still don't have idea how can I do it. Using CoreAnimation, Quartz2d or UIBezierPath I can draw a circle, but how can I draw a nice diagram with touch gesture's aid, using that? Maybe I wrong searched? If any tutorial, or sample code for this issue?

Était-ce utile?

La solution

Best and easy library I used to draw pie chart with animation; MIM Chart Library for iOS

https://github.com/ReetuRaj/MIMChart-Library

Open source.

Autres conseils

OK, CoreAnimation is not what you're looking for with this.

Anyway...

If you want to make a nice Pie Chart then you should take a look at CorePlot.

It has a lot of graphing functions and pie charts are in there too.

You can still animate with this you just need to update the percentages based on touch. Don't try to animate the sections of the circle. Change the percentages and update the circle.

Looks like you are trying to do some charts & plotting. If that is so, there is something called as

  1. Core Plot

  2. ILGraphics

  3. OVGraphView

  4. Some controls as well

    Hope that helps.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top