Tattat
Tattat

Reputation: 15778

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 change it to show the transparency instead of black color? thz.

Upvotes: 0

Views: 436

Answers (1)

Mike Weller
Mike Weller

Reputation: 45598

Set the opaque property on the view to NO.

Upvotes: 1

Related Questions