TKP TKP - 13 days ago 5
iOS Question

Change the color of empty table view cells?

I changed the color of cells from the storyboard (did not use any code) but as you can see in this image:

enter image description here

empty cells stay white as default. I want to change those empty cells to red also but I am having trouble figuring out.
I also in my code setting

cell.backgroundColor = [UIColor redColor];
with no success.

nmh nmh
Answer

You just set tableView's backgroundColor: yourTableView.backgroundColor = [UIColor redColor];