I have a “circular” image, something like a pie chart. I would like a nice appearing animation, like when a pie chart fills itself from 0 to the value.
I usually use something like this when I want to animate views :
[UIView animateWithDuration: 3.0
delay: 0.0
options: UIViewAnimationCurveEaseInOut
animations: ^ {
// The animation
}
completion: ^(BOOL finished) {
// On completion
} ];
Is it possible to do the same thing for a circular animation ? I really have no idea on how to do that.
Thanks for any leads !
Note : iOS 5, storyboards, ARC, and all that stuff 🙂
Edit : for future discussion, the image looks like this :

Okay, here it goes 🙂
First option (Easy one). You could use
UIImageView‘sanimationImagesproperty. MakeNSArraywith animation images (in your case, circular images those fill from 0 to full circle), setanimationDuration, and call[imageView startAnimating](I’m assuming that yourUIImageViewisimageView), and you can call[imageView stopAnimating]when process is done.Second:
Check out this link http://www.cocoacontrols.com/platforms/ios/controls/jpradialactivityindicator, I think that sample project does the almost same, as you are trying to do 🙂
Good Luck 😉