Drawing and Animating with UIView or CALayer?

Posted by Markus on Stack Overflow See other posts from Stack Overflow or by Markus
Published on 2010-04-08T10:20:35Z Indexed on 2010/04/08 10:23 UTC
Read the original article Hit count: 543

Filed under:
|
|
|
|

hello, i am trying to implement a graph which a uiview draws. There are 3 UIViews to animate a left/right slide. The problem is, that i can't cancel the UIView animation. So I replaced the UIViews by CALayer. Now, the question is if CALayer is appicable for this? Is it normal to draw on a CALayer like this? And why is a CALayer so slow when I manipulate the frame properties.

CGRect frame = curve.frame;
frame.origin.x -= diffX;
[curve setFrame:frame];

Is there a alternativ?

P.S. I am a german guy. Sorry for mistakes.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about calayer