Re: CALayer instant content update
Re: CALayer instant content update
- Subject: Re: CALayer instant content update
- From: David Duncan <email@hidden>
- Date: Fri, 3 Sep 2010 10:44:44 -0700
On Sep 3, 2010, at 10:36 AM, Markus Spoettl wrote:
> I have delegate-drawn layers (on the main thread) whose content I want to change without animation, I don't want to a change transition of any kind in some situations. Up until now I'm using this:
If you want to have a layer that doesn't animate (crossfade) content changes, then set the layer's actions dictionary like so:
layer.actions = [NSDictionary dictionaryWithObject:[NSNull null] forKey:@"contents"];
This will prevent animation of the "contents" property. There are a lot of other ways to do this too, I would recommend you read the documentation for -[CALayer actionForKey:] for more details.
--
David Duncan
_______________________________________________
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