I use a grouped tableview and custom cells which I load from nib. When I set the background colour of tableview to clearcolor then I can only see the contents of the cells but nothing about the tableview. I like the rounded corners and seperator lines of the gropued view, so I want to keep those lines and change the colours of the lines, but set the table's background colour transparent so I will see the main image of the window. is this possible?
Asked
Active
Viewed 114 times
2 Answers
2
So you wanted to change the color of separator lines
self.tableView.separatorColor = [UIColor colorWithRed:0.0 green:0.0 blue:0.0 alpha:1];
// give your hex color code or your color

Praveen-K
- 3,401
- 1
- 23
- 31
1
Inside of viewDidLoad
of your view controller you need to set the backgroundView
to nil and the backgroundColor
to clear.
self.tableview.backgroundView = nil;
self.tableview.backgroundColor = [UIColor clearColor];

Joe
- 56,979
- 9
- 128
- 135
-
a thousand thanks! I would _never_ have thought of setting backroundView, too.. grrr.. – DefenestrationDay Feb 24 '12 at 14:04