Re: Cora Animation transormation
Re: Cora Animation transormation
- Subject: Re: Cora Animation transormation
- From: Matt Long <email@hidden>
- Date: Wed, 12 Nov 2008 08:06:17 -0700
You need both of these lines when you create your animation:
[animation setRemovedOnCompletion:NO];
[animation setFillMode:kCAFillModeForwards];
Here is a related blog post: http://www.cimgf.com/2008/10/25/core-animation-tutorial-slider-based-layer-rotation/
-Matt
On Nov 12, 2008, at 7:57 AM, Fabrizio Guglielmino wrote:
Hi all,
in a simple project I need to rotate about the Z vector a little
image.
I've used CAKeyframeAnimation with CATransform3DMakeRotation and it
was really simple.
My problem is about persistence of rotation, when animation end the
image return in original position and this isn't what
I want. I can't understand if this is the normal behaviour of
CATransorm3DMakeRotation or I'm making something wrong, I've also
see a property called removedOnCompletion but it don't seem change
anything.
Many thanks
Fabrizio
_______________________________________________
_______________________________________________
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