Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change table view ( tableview style grouped ) background color?

I am developing an iPad application in which I need a table view ( style grouped ) having background color as clearColor.

My problem is

[self.tableView setBackgroundColor:[UIColor clearColor]];

works well if the table view style is plain but when I switch to group table view the background color does not changes it stays gray in color.

FYI: the contentview background color of tableviewcell also does not change.

Is this a bug in iPhone-sdk or I am doing something wrong.

like image 617
Madhup Singh Yadav Avatar asked Mar 19 '10 10:03

Madhup Singh Yadav


1 Answers

solved:

simply do:

[self.tableView setBackgroundView:nil];

Hope this helps.

like image 135
Madhup Singh Yadav Avatar answered Nov 15 '22 17:11

Madhup Singh Yadav