• 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: Does CAAnimationGroup groups animations for a single layer?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does CAAnimationGroup groups animations for a single layer?


  • Subject: Re: Does CAAnimationGroup groups animations for a single layer?
  • From: Gustavo Pizano <email@hidden>
  • Date: Tue, 23 Feb 2010 19:43:16 +0100

I see.

Thanks for the explanation..

I will give it a try now.

Gustavo

On Feb 23, 2010, at 7:35 PM, David Duncan wrote:

> On Feb 23, 2010, at 10:15 AM, Gustavo Pizano wrote:
>
>>> Additionally, rather than changing the anchorPoint do your animation based on the center of the view instead of it's frame's origin (which will also continue to work as you expect should you need to do an animation on a layer that has a transform).
>>
>> So When creating the CABasicAnimation I shall place the fromValue and ToValue to be the translated values? or I should set the CATransform3d with the translated layer position?
>
>
> The frame property of a layer is calculated from the layer's position, anchorPoint, transform and bounds properties. When you set the frame of a layer, that rectangle is used to calculate the layers new position and bounds properties using the transform and the anchorPoint.
>
> In general when moving a layer it is easier to change the layer's position instead of the frame, as doing so is agnostic to the other properties of a layer. Changing the frame or transform of a layer in order to move it tends to lead to lots of head-meets-desk time as the developer tries to figure out why their animation isn't working the way they expect it to.
>
> In the UIView case, the center property corresponds to the position property, and the anchorPoint left at its default 0.5,0.5.
> --
> 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: 
 >Does CAAnimationGroup groups animations for a single layer? (From: Gustavo Pizano <email@hidden>)
 >Re: Does CAAnimationGroup groups animations for a single layer? (From: David Duncan <email@hidden>)
 >Re: Does CAAnimationGroup groups animations for a single layer? (From: Gustavo Pizano <email@hidden>)
 >Re: Does CAAnimationGroup groups animations for a single layer? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Does CAAnimationGroup groups animations for a single layer?
  • Next by Date: Re: Removing quit button from dock menu
  • Previous by thread: Re: Does CAAnimationGroup groups animations for a single layer?
  • Next by thread: -commitEditing NSAlert not always presented as a sheet
  • Index(es):
    • Date
    • Thread