2010-04-17 62 views

回答

8

试试这个:

imageView.backgroundColor = [UIColor clearColor]; 
imageView.opaque = NO; 

您可以通过“背景” 0%不透明度的颜色,并取消勾选的“不透明”复选框实现IB同样的事情。

+0

谢谢你做到了! – Silent 2010-04-23 18:11:43

3

尝试

imageView.backgroundColor = [UIColor clearColor];