I am trying to change the background color of a user UITableViewCellin the normal UITableView style.
I read other similar questions, and I'm in my delegate method:
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
I have installed cell.backgroundColor = [UIColor...]. The problem is that this only works for a grouped style UITableView.
Note. The reason I want to do this programmatically, and not in my .xib file, is because I want different background colors for different cells.
source
share