Re: [SOLVED] CALayer/CAAnimation doesn't animate
Re: [SOLVED] CALayer/CAAnimation doesn't animate
- Subject: Re: [SOLVED] CALayer/CAAnimation doesn't animate
- From: Joachim <email@hidden>
- Date: Wed, 16 Jan 2008 10:31:17 +0100
On 15-Jan-08, at 9:54 PM, Bill Dudney wrote:
1) When the layer starts animating, the hosting view dissapears and
never reappears (this also happened in the original code)
Hm... are you drawing into the view? That is another no-no, once you
take over the layer of a view you should not draw in it (with the
drawRect: method) but instead do all your drawing via the layer.
Ahem... No comments :-)
You're right. I need to use the delegate method instead. In my case
drawLayer:inContext:.
2) Setting the fillMode to kCAFillModeForwards still makes the
layer jump back to its original position (or opacity or whatever I
animate on) after the animation is done
Not sure what this is all about. Are you ever setting the value or
just depending on the animation to set it for you?
Adding animation.removedOnCompletion = NO solved this.
Once again, thanks for the help.
Joachim
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden