简体   繁体   中英

iOS: How to use a RGBA image and have UIImageView accept it as partially transparent? (Getting black for transparent pixels)

I'm loading a partially transparent/translucent RGBA PNG into an UIImage, and setting that as the image as a UIImageView. Unfortunately it is not working.

Thanks.

您需要在图像后面有一个视图,即通过透明像素显示的视图。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM