Core animation update layer properties
Core animation update layer properties
- Subject: Core animation update layer properties
- From: Nik Youdale <email@hidden>
- Date: Mon, 10 Dec 2007 01:57:50 +1100
Hey there,
I want to fade out a layer (from opacity 1 to 0) using a
CABasicAnimation.
I have tried the following:
CABasicAnimation *a = [CABasicAnimation
animationWithKeyPath:@"opacity"];
a.fromValue = [NSNumber numberWithFloat:1.0];
a.toValue = [NSNumber numberWithFloat:0.0];
a.duration = 1.0;
[layer addAnimation:a forKey:@"myFadeOut"];
This works fine, however when the animation completes the layers
opacity reverts back to its value before the animation began (1.0 in
this case).
Is there any way I can tell the animation to update the real opacity
property, instead of just the 'presentation' one?
_______________________________________________
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