Re: CoreAnimation removeFromSuperlayer flicker
Re: CoreAnimation removeFromSuperlayer flicker
- Subject: Re: CoreAnimation removeFromSuperlayer flicker
- From: Brian Christensen <email@hidden>
- Date: Mon, 16 Jun 2008 15:59:39 -0400
On Jun 14, 2008, at 2:29 , Milen Dzhumerov wrote:
I've got a root layer which has got a solid background and I've
got one sublayer. If I call removeFromSuperlayer on the sublayer
when the root layer is small in size, it removes itself with
animation and there are no problems. But if I increase the size of
the window (the hosting view and the root layer consequently
increase their size as ewll) and remove the sublayer again, I can
see that the root layer changes to become all white for a fraction
of a second and then goes back to normal (the sublayer is removed
with animation normally). Are there any reasons for the flicker
(e.g. wrong usage of removeFromSuperlayer)?
How large is your root layer when you start seeing the flickering?
Probably about 700x500.
Have you tried using an explicit animation to set the opacity property
to 0.0 and then upon completion of said animation (by implementing the
appropriate delegate method) remove the sublayer? Maybe that will
eliminate the flickering by fading it out before actual removal.
/brian
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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