views:

55

answers:

1

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.

+1  A: 

Set the opaque property on the view to NO.

Mike Weller