I have a UITableViewCell with the UITableViewStyleGrouped style and I would like to change the background color of the cell.
- (UITableViewCell *)tableView:(UITableView *)tv cellForRowAtIndexPath:(NSIndexPath *)ip {
// Do cell creation stuff ...
cell.backgroundColor =
[UIColor colorWithRed:255.0/255.0 green:243.0/255.0 blue:175.0/255.0 alpha:0.50];
}
The trouble is, this doesn't display properly on a grid with the UITableViewStyleGrouped
; I use the same color on a UITableViewStylePlain
and it displays correctly. I'm developing for OS 3.0 and have read the multiple posts on setting background color. I can set the color it just doesn't set properly! What am I missing?