Re: Cora Animation transormation
Re: Cora Animation transormation
- Subject: Re: Cora Animation transormation
- From: "Fabrizio Guglielmino" <email@hidden>
- Date: Wed, 12 Nov 2008 16:23:16 +0100
Many thanks....I've tried and it works but I still have a problem.
If I made a second animation (rotation) of the image, after it's
previous rotated, it seems to make this second animation using as
starting point the original position of the image and not the rotated
image, in this sense I was talking about persistence of rotation.
To better explain: I make 90 degrees rotation clockwise, after I make
10 degrees anticlockwise it start from original point (vertical image)
and not from 90 degree rotated image.
Meanwhile I've placed an order on Amazon for ""Core Animation for Mac
OS X and the iPhone: Creating Compelling Dynamic User Interfaces" ;-)
Many thanks
2008/11/12 Matt Long <email@hidden>:
> 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