Transparent layer-backed views
Transparent layer-backed views
- Subject: Transparent layer-backed views
- From: Zbigniew Sobiecki <email@hidden>
- Date: Sat, 14 Nov 2009 18:07:53 +0100
Hello,
I'm trying to perform some simple animations using CA layers on
transparent window and corresponding view. The problem I have is that
every time I turn on the layer backing (either through wantsLayer in
code, or with IB) the view stops being transparent.
I've tried setting layer's backgroundColor to something with low alpha
and few other rather obvious approaches, but it looks to me that I'm
missing something.
To illustrate the problem better, let's just use sample Round
Transparent Window project from Apple (http://developer.apple.com/Mac/library/samplecode/RoundTransparentWindow/index.html
).
By default it looks like this:
http://slonce.com/no-layer.png
But with layer added (just this single line in awakeFromNib), the
transparency goes away:
http://slonce.com/with-layer.png
Could anyone please give me some hints on this?
Thanks,
-Z
_______________________________________________
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