Re: Synching Animations Across CALayers
Re: Synching Animations Across CALayers
- Subject: Re: Synching Animations Across CALayers
- From: "E. Wing" <email@hidden>
- Date: Fri, 23 May 2008 00:45:16 -0700
On 5/23/08, Bridger Maxwell <email@hidden> wrote:
> Hey, I have a simple "pulse" animation that increases then decreases
> opacity, then repeats. I apply this animation to several different CALayers,
> at different times. I would like to have the animation synched across all of
> the CALayers. Right now, the animation starts from the beginning when I add
> the animation to a layer, and pulsates to its own time. I have looked at
> CAAnimationGroup, but that was to synch different CAAnimations all applied
> to the same layers. Perhaps there is a way to see how far along the
> animation is for a given layer, and be able to make another layer synch to
> the same time. Surely this has to be possible.
>
>
> TTFN
> Bridger Maxwell
Does surrounding your code in CATransaction begin/commit help?
[CATransaction begin];
<all your animations>
[CATransaction end];
-Eric
_______________________________________________
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