Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] CALayer/CAAnimation doesn't animate



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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >CALayer/CAAnimation doesn't animate (From: Joachim <email@hidden>)
 >Re: CALayer/CAAnimation doesn't animate (From: Bill Dudney <email@hidden>)
 >Re: CALayer/CAAnimation doesn't animate (From: Scott Anguish <email@hidden>)
 >Re: CALayer/CAAnimation doesn't animate (From: Joachim <email@hidden>)
 >Re: CALayer/CAAnimation doesn't animate (From: Bill Dudney <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.