开发者

How can I change the background image view transparency image?

It is the code:

self.view.backgroundColor= [[UIColor alloc] initWithPatternImage:[UIImage imageNamed:@"yourimage.png"]];

My "yourimage.png" have some space that is transparency. But it shows me it becomes black. How can I chang开发者_如何学编程e it to show the transparency instead of black color? thz.


Set the opaque property on the view to NO.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜