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

前端 未结 14 1910
青春惊慌失措
青春惊慌失措 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 11:44

    Y not, use setBackgroundColor

    self.table.separatorColor=[UIColor whiteColor];
    [table setBackgroundColor:[UIColor colorWithRed:.8 green:.8 blue:1 alpha:1]];
    

提交回复
热议问题