• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [SOLVED] CALayer/CAAnimation doesn't animate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


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>)

  • Prev by Date: Re: Using Terminal within Cocoa App.
  • Next by Date: Re: NSTrackingArea, Pie charts and not rectangular areas
  • Previous by thread: Re: CALayer/CAAnimation doesn't animate
  • Next by thread: Move window by dragging button
  • Index(es):
    • Date
    • Thread