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?

有帮助吗?

解决方案

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.

其他提示

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.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top