Interface Builder中的PNG透明性 [英] PNG transparency in Interface Builder

查看:80
本文介绍了Interface Builder中的PNG透明性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Interface Builder中添加带有透明PNG(导航栏中的徽标)的图像视图,但是透明像素似乎呈现为白色.

I'm adding an Image View in Interface Builder with a transparent PNG (A logo in the Navigation Bar) but the transparent pixels seems to render as white..

我在Interface Builder中搜索了PNG,但没有运气.有什么提示吗?

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

推荐答案

确保未选中视图属性绘图"部分中的不透明"复选框,并且背景的不透明度为0.

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

这篇关于Interface Builder中的PNG透明性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆