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] Resetting of property values after completion of a CABasicAnimation




Keep in mind that animation (by its self) is not changing the underlying property.

This is misleading. The animation does change the property but the way it figures out what to set it to is based on interpolating between the from and to values. So in the first 'time slot' the view will jump to where the interpolation calculations direct. If that is not 'smooth' then you get the jumping.


Sorry for the confusion.

TTFN,

-bd-
http://bill.dudney.net/roller/objc



On Nov 14, 2007, at 8:08 AM, Steve Sheets wrote:


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

This email sent to email@hidden

_______________________________________________

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

_______________________________________________

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: 
 >Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation (From: Steve Sheets <email@hidden>)
 >Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation (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.