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

Re: Core Animation - Animation Sequence


  • Subject: Re: Core Animation - Animation Sequence
  • From: Rodolfo Niborski <email@hidden>
  • Date: Tue, 1 Jun 2010 00:01:32 +0200

David,

Thank you for your quick answer, I'll try this and let you know what happened.
By the way, I forgot to say that my question was on iPhone, but everything you mention seems to be available in  iPhone OS 3.0.

Rodolfo Niborski
http://itunes.com/apps/yiddishforkids1-alefbeys

Le 31 mai 2010 à 23:35, David Duncan a écrit :

> On May 31, 2010, at 2:24 PM, Rodolfo Niborski wrote:
>
>> My problem is that at the end of the first animation, the "Hello" message shows up in its initial position for a fraction of a second.
>> I've tried to set the fillMode of the first animation to kCAFillModeForwards with no effect.
>
> What you want to do instead is set the transform of the layer rather than trying to modify the animation to stick around. The code would be something like this:
>
> CABasicAnimation *rotation = [CABasicAnimation animationWithKeyPath:@"transform"];
> rotation.valueFunction = [CAValueFunction functionWithName: kCAValueFunctionRotateZ];
> // setup the rest of the animation as you did previously
> layer.transform = CATransform3DMakeRotation(M_PI, 0, 0, 1);
> [layer addAnimation:rotation forKey:@"transform"];
>
> What this does is it creates a basic animation that does the rotation, and then overrides the implicit animation that is created when you assign the transform to the layer. In this example I use the CAValueFunction rather than the extended keypath as this is more efficient and much more predictable, but doing so requires 10.6.
> --
> David Duncan
> Apple DTS Animation and Printing
>

_______________________________________________

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

References: 
 >Core Animation - Animation Sequence (From: Rodolfo Niborski <email@hidden>)
 >Re: Core Animation - Animation Sequence (From: David Duncan <email@hidden>)

  • Prev by Date: Re: UTI strings
  • Next by Date: Re: Managed Object Context Reference
  • Previous by thread: Re: Core Animation - Animation Sequence
  • Next by thread: Re: Core Animation - Animation Sequence
  • Index(es):
    • Date
    • Thread