UITableView backgroundColor always white on iPad

后端 未结 16 1511
生来不讨喜
生来不讨喜 2020-12-07 21:35

I\'m working on a project. I have plenty of UITableViews which are set as clear color. Their views\' background color are set to my custom color and everything

16条回答
  •  太阳男子
    2020-12-07 22:28

    This can be achieved in a Storyboard as follows:

    • Show the document outline for your storyboard
    • Within your table, pick a TableViewCell
    • go to the Content View within that Cell
    • Set the background colour of the Content view.

    Result: iPad and iPhone simulator views look the same

提交回复
热议问题