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.
在我的应用程序中有一个添加图像的选项。当我添加图像时,即使我不添加任何图像,也总是有白色背景。我怎样才能摆脱它?(我所有的图片都是透明的(png))谢谢。
将视图的背景颜色设置为清除要添加图像的颜色。例如:
imgView.backgroundColor=[UIColor clearColor];