• 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] Resetting of property values after completion of a CABasicAnimation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation


  • Subject: Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
  • From: Steve Sheets <email@hidden>
  • Date: Wed, 14 Nov 2007 10:08:07 -0500


On Nov 13, 2007, at 9:57 AM, email@hidden wrote:

second suggestion, using transactions worked like a charm. Problem solved.


Dear Bill & Vincent (and everyone else),

While I am glad your code is doing what you want, your original question never was answered. I am having similar problem, or at least, I am having hard time understanding what is going on when using CABasicAnimation.

All the sample documentation and examples use CABasicAnimation to create an explicit animation from some property value (using changing Opacity) to another value and then back again. They do not show you how to explicitly animate a property value so that the value stays changed.

I want to animate from value (in my case, the layer's position), and have the value be valid at the end of the animation. When I use CABasicAnimation animation to do this, the position of the layer changes (a nice smooth animation), but then the layer jumps back to it's original position.

Yes, I could use implicit animation to do similar effect, but I am going to be grouping animations together, with different start times, so I need to make it an explicit animation.

Can anyone explain what I am doing wrong?

Steve Sheets
Midnight Mage Software

_______________________________________________

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


  • Follow-Ups:
    • Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
      • From: Bill Dudney <email@hidden>
  • Prev by Date: Stop the animation while it is in progress?
  • Next by Date: Re: Programatically disable TimeMachine & Spotlight agents
  • Previous by thread: Stop the animation while it is in progress?
  • Next by thread: Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
  • Index(es):
    • Date
    • Thread