problems with CAAnimation
problems with CAAnimation
- Subject: problems with CAAnimation
- From: Memo Akten <email@hidden>
- Date: Thu, 19 Mar 2009 15:13:58 +0000
- Delivered-to: email@hidden
- Delivered-to: email@hidden
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memo.tv; h=Received:Message-Id:From:To:Content-Type:Mime-Version:Subject:Date:X-Mailer:X-Identified-User; b=pAYSJwxYhIL9Jk+R1CdqJosVHFUo5wnzt9l45Y7P+Yc5qZ7NDuU8l3wyRIYKCC/EQq1fRgtoEZNxnfVFNC44fcJReeg8eZsq0SfbgW5ctvykP1g8n2G3UkRHgfDFjmUW;
Hi, I posted this on the quartz list yesterday but received no
response, it seems like such a simple thing...
When I add an animation to my layer, it animates, but then snaps back
to its previous position. Is this normal?
growAnimation = [[CABasicAnimation
animationWithKeyPath:@"transform.scale"] retain];
growAnimation.duration = 0.25;
growAnimation.fromValue = [NSNumber numberWithFloat:1.0f];
growAnimation.toValue = [[[CardManager instance] config]
objectForKey:@"cardHoverScale"];
growAnimation.timingFunction = [CAMediaTimingFunction
functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[rootLayer addAnimation:growAnimation forKey:nil];
_______________________________________________
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
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.