• 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: Cora Animation transormation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Cora Animation transormation
      • From: "Fabrizio Guglielmino" <email@hidden>
References: 
 >Cora Animation transormation (From: "Fabrizio Guglielmino" <email@hidden>)

  • Prev by Date: another best-practices question: separate delegates for controls?
  • Next by Date: Re: Cora Animation transormation
  • Previous by thread: Cora Animation transormation
  • Next by thread: Re: Cora Animation transormation
  • Index(es):
    • Date
    • Thread