开发者

PNG transparency in Interface Builder

开发者 https://www.devze.com 2022-12-11 02:06 出处:网络
I\'m adding an Image View in Interface Builder with a transparent PNG (A logo in the Navigation Bar) but th开发者_Go百科e transparent pixels seems to render as white..

I'm adding an Image View in Interface Builder with a transparent PNG (A logo in the Navigation Bar) but th开发者_Go百科e transparent pixels seems to render as white..

I searched for PNG in Interface Builder but no luck. any tips?


Make sure the "Opaque" checkbox in the "Drawing" section of the view attributes is unchecked, and that the background has an opacity of 0.


After you select your image in a UIButton in Interface Builder, you need to tell it to use a background with 0 opacity (alpha).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号