TKP TKP - 1 year ago 94
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 Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download