Re: Choppy Core Animation
Re: Choppy Core Animation
- Subject: Re: Choppy Core Animation
- From: Scott Anguish <email@hidden>
- Date: Sat, 3 Nov 2007 01:54:04 -0400
this is entirely unnecessary.
simply using the frame method should work through the animator proxy.
On Nov 2, 2007, at 9:34 PM, Hasani Hunter wrote:
I added the following code:
CALayer *viewLayer = [ view layer ];
// create a keyframe animation..
CAKeyframeAnimation *keyAnimation = [ CAKeyframeAnimation animation ];
// set the keypath
[ keyAnimation setKeyPath:@"frame" ];
// create an array of values..
NSArray *animationArray = [ NSArray arrayWithObjects:
[ NSValue valueWithRect:[ view frame ] ],
[ NSValue valueWithRect:frame ],nil ];
[ keyAnimation setValues:animationArray ];
[ viewLayer addAnimation:keyAnimation forKey:@"frame" ];
[ [ view animator ] setFrame:frame ];
I'm still not convinced that this is right, but the animation is a
bit smoother..
On Nov 2, 2007, at 5:05 AM, Scott Anguish wrote:
OK, one comment off the top.
_______________________________________________
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