I’m using the code below in my view controller but the background image is not showing. Any idea what could be the issue?
(void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath
{
cell.contentView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell-background.png"]];
/* I also tried: cell.backgroundView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell-background.png"]]; */
}
Thx for helping,
Stephane
Shooting in the dark, but have you tried
or perhaps you misspelled background in the image path? 😉