I need some sample code where I can animate a curve/arc path which should draw a full circle as animated?
Any input will be appreciated.
Thanks, Sat
I need some sample code where I can animate a curve/arc path which should draw a full circle as animated?
Any input will be appreciated.
Thanks, Sat
UPDATE: Realizing there is a better solution to this problem. Just create a circular path and animate the strokeEnd property of a CAShapeLayer from 0.0f to 1.0f. Take a look at this answer from Ole: Drawing a path with CAKeyFrameAnimation on iPhone
ORIGINAL ANSWER:
You can use a CAKeyframeAnimation and create a Core Graphics path. This code animates a layer in a parabolic pattern, but you can adapt it to draw a circle.