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

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

    You can partially do this in Interface Builder (probably added to Xcode recently):

    • Expand the cell in the Storyboard's Document Outline and select "Content View"
    • Set Content View background color in the Attributes Inspector
    • Select each content item in the cell and set their background colors to ClearColor

    Still don't see a way to set the accessory background though.

提交回复
热议问题