I changed the color of cells from the storyboard (did not use any code) but as you can see in this image:
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.
You just set tableView's backgroundColor:
yourTableView.backgroundColor = [UIColor redColor];
For others who like to use Storyboard, there's not a specific setting to set this, but in the Table View in Storyboard, you can go to the Identity Inspector, enter a "backgroundColor" and set it as the Color type in User Defined Runtime Attributes:
Not sure why this isn't a setting in storyboard, but this works!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With