Re: CoreAnimation synchronous animations
Re: CoreAnimation synchronous animations
- Subject: Re: CoreAnimation synchronous animations
- From: Scott Anguish <email@hidden>
- Date: Fri, 4 Jul 2008 19:32:20 -0400
no.
You'll need to set some sort of flag that prevents any other actions
from happening for the period of time the animation takes.
you an do this using a timer to 'shut off' the flag, or you can use
explicit animations rather than implicit ones and then implement the
delegate method that is called when an animation is finished to turn
the flag back off. (if you use explicit, you'll also need to set the
property you're animating to the final value you want in the delegate
method, since otherwise the value in the model layer won't be current.
On Jul 4, 2008, at 2:17 PM, Jesus De Meyer wrote:
Hi,
I'm using CoreAnimation for a kind of puzzle game where you move one
piece to anothe position. I read that when I you do implicit
animations, like changing the position of a layer, this happens
asynchronously. Is there a way to do this synchronously?
I've tried using a CAAnimationGroup but it doesn't seem to be the
appropriate solution for this project.
_______________________________________________
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