Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
- Subject: Re: [SOLVED] Resetting of property values after completion of a CABasicAnimation
- From: Bill Dudney <email@hidden>
- Date: Thu, 15 Nov 2007 12:17:41 -0700
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:
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:
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:
This email sent to email@hidden