Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problems making an UIImageView opaque on the iPhone

Doing as little alpha blending as possible is an important performance consideration for table view cells on the iPhone. I have table cells that are largely comprised of one big image view. I have set the UIImageView to be opaque, in both Interface Builder and programmatically, but the CoreAnimation instrument still shows that it is being alpha-blended.

Is there a way to make UIImageViews actually opaque, or am I going to have to do custom drawing to keep from blending?

like image 836
qwzybug Avatar asked Aug 14 '09 02:08

qwzybug


1 Answers

It's likely that your image contains alpha channel. Although the image is opaque, iOS still treats it as semi-transparent. Try to remove this alpha channel using Photoshop by going to: Layer > Background From Layer

like image 69
Louis Nguyen Avatar answered Nov 05 '22 15:11

Louis Nguyen