Why doesn't UITableViewCell background color work (set in interface builder)?

前端 未结 14 1771
青春惊慌失措
青春惊慌失措 2020-12-23 11:43

Why doesn\'t UITableViewCell background color work (set in interface builder)?

I note from some searching that the follow code set in your custom subclass of UITable

14条回答
  •  隐瞒了意图╮
    2020-12-23 12:04

    It's a bit late, but I just ran into this issue... Setting the background color on the contentView works fine:

    cell.contentView.backgroundColor = [UIColor redColor];
    

提交回复
热议问题