Lalit_vicky
Lalit_vicky

Reputation: 295

setting Transparency to the UITableView

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

Answers (3)

simbesi.com
simbesi.com

Reputation: 1529

tablecell.contentview.backgroundcolor = [UIColor clearColor];

Hope it should help..

Upvotes: 1

manujmv
manujmv

Reputation: 6445

You have to set the backgroundview nil before making background as transparent

tableView.backgroundView = nil;
tableView.backgroundColor=[UIColor clearColor];

Upvotes: 0

Avi Tsadok
Avi Tsadok

Reputation: 1843

Try:

tableView.backgroundView = nil;

Upvotes: 1

Related Questions