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

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

    You should always provide changes for cells in tableView:willDisplayCell:forRowAtIndexPath: instead of the tableView:cellForRowAtIndexPath: method, as per Apple Documentation.

    This Works !!

提交回复
热议问题