Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 ImageView 中有 Image.png(它有一些透明像素),但是当我在设备上运行我的应用程序时,我的图像上的像素不透明(我在图像下方看不到任何东西,我在这些地方只看到灰色)。有谁知道我可以让它工作吗?
使用以下方法更改 UIImageView 的背景颜色以清除颜色:
imageView.backgroundColor = [UIColor clearColor];