The best way to create animation diagram - ios

I'm trying to create something like this:
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
Core Plot
ILGraphics
OVGraphView
Some controls as well
Hope that helps.

Related

Firemonkey: How to draw just a point on a canvas

I m just a little surprised but It looks like on firemonkey there is no easy way to draw a single point on a Canvas? or I m tired and I miss something?
As many ask me, below a sample of what I want to achieve (I want to also make a dynamique animation and move each dots on the fly)

How to create a complex SVG layer fill animation based on CAShapeLayer

As you can understand from the title of this question I am trying to achieve fill animation of CALayer(CAShapeLayer) of SVG file.
How complex should be animation you can see from the images I attached.
I decided to start just with a circle and animate it to fill a layer below. Everything works pretty well.
So, I started building UIBezierPath or something like that but it looks like I am going the wrong direction.
I would really appreciate if you can just give me different ideas how to achieve it.
For SVG I use SVGKit. Maybe by using these set of classes, I can do something.
Thank you!

Draw gantt chart using UIcollectionviewcontroller?

I have research in forum satackovzrflow and I have found(Using a UICollectionViewController and my own UICollectionViewLayout subclass, I've put together a view that shows a Gannt style time chart. Using that framework to do the bands has been really easy of Travis Griggs) So How can I draw gantt chart Using UIcollectionviewController? Give me any idea to I can start draw it?
http://i.stack.imgur.com/7dg6G.png
Two years ago I have same task. I have folders, and tasks. I done all staff with simple view and autoresizing mask. I go through all tasks, calculate frames and create view hierarchy with this frames. To draw arrows between tasks, I create overlay that draws arrows.
If you really want use UICollectionView, I recommend to you read about custom layout.
Why to reinvent the wheel, you can check one of the library that draw charts on iOS and use it
Check the following Libraries
IQ Widgets
ios-charts
JBChartView
PNChart
The first library IQ Widgets has a Gantt chart

draw pie chart using iOS quartz 2D

I am looking for a tutorial where I can draw pie chart programmatically using Core Graphics or Quartz 2D in iOS. I want to understand how can we draw the PIE Chart which is gradient and having multi-color filled slices in it.
Note: Not looking for Coreplot framework.
Please share me some links regarding the same.
I have used "XYPieChart" library in my so many apps and it's very easy to modify.
Available on github.
Link is given below:
https://github.com/xyfeng/XYPieChart
Still needs any help then let me know.
You can also use this library, as this is also completely customisable and too easy to use.
Just use one line of code, this method along with the pie chart view used & the array with values to be rendered in the pie chart view:
- (void)renderInLayer:(RJPieChart *)layerHostingView dataArray:(NSMutableArray*)dataArray
Hope this helps.
Thanks

Simple iOS particle emitter

Is there a simple way to do a bunch of 2d particle images using core animation like the star particle animation in Draw Something?
Particle animation in Draw Something
I found this link which get's me 90% of the way there. It shows how to emit particles using UIImage which is just what I need. I just need some help tweaking the particles so they spew out like the Draw Something button and not like their fire example and I want to randomize the colors of the particles and make them glow.
http://www.raywenderlich.com/6063/uikit-particle-systems-in-ios-5-tutorial
Okay, just found this which got me the rest of the controls I wanted. The variable I was looking for on the emitters was yAccelleration. Set it to a positive number to make it go down.
http://developer.apple.com/library/mac/#samplecode/Fireworks/Listings/AppController_m.html
Hope this helps someone else!

Resources