When I set repeating background image to a UITableView by using the following code is ok:
tableView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];
but when I use it to set repeating-background image to a UITableViewCell by following code, nothing happen, I don’t know why, I also cannot set background color to this cell too.
cell.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"bg.png"]];
Is there anyone know the way to so this? please help me!
which would go inside this code block:
You can also see how to set the selected image in inside there too: selectedBackgroundView.
I’m unsure about repeating, but I’m pretty sure backgroundView can have contentMode set on it.