CALayer and Quartz Transparency
Posted
by Brian
on Stack Overflow
See other posts from Stack Overflow
or by Brian
Published on 2010-03-30T04:09:21Z
Indexed on
2010/03/30
4:13 UTC
Read the original article
Hit count: 484
I have a CALayer subclass. I have overridden the drawInContext method. I want the majority of my layer to be transparent except a few areas. I'm using the layer as a menu and I want the icons and labels on the menu to be opaque.
Is it possible to have a CALayer's sublayers be opaque if the super CALayer is transparent?
Is it possible to draw opaque tems in the drawInContext method of a transparent CALayer? I have tried using CGContextSetAlpha, but I assume it doesn't work since the CALayer that I am drawing for is transparent.
As always, any help would be great.
© Stack Overflow or respective owner