Reputation: 295
I have a view that contains a scroll view and again that contains a view and then a table view.(this table view has custom cells).
I have a background image for the top most view but the inner most table view background is blocking the image. Tableview shows a white background .
I have to make the background of tableview as transparent so that the image on the view should be visible.
how to do that. Pls help.
Upvotes: 0
Views: 54
Reputation: 1529
tablecell.contentview.backgroundcolor = [UIColor clearColor];
Hope it should help..
Upvotes: 1
Reputation: 6445
You have to set the backgroundview nil before making background as transparent
tableView.backgroundView = nil;
tableView.backgroundColor=[UIColor clearColor];
Upvotes: 0