Animation for drawRect drawings
Asked Answered
C

1

10

A part of my app is a statistics-function. I draw in a UIView a path and fill it with a color... now I want to make an animation that the path draws through the UIView from the left side to the right side.

I read about CALayer, but I'm not sure how that works... some sample code or links would be great.

Cannady answered 7/9, 2011 at 23:0 Comment(0)
L
11

This is a great post: http://tumbljack.com/post/179975074/complex-interpolation-with-cashapelayer-free

In general this is a duplicate of this: Animating a shape with CoreAnimation

Cheers

Oded

Lamarckism answered 15/9, 2011 at 16:12 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.