UITableView embedded in other view has wrong position of section header

后端 未结 2 1118
清歌不尽
清歌不尽 2021-01-03 00:16

I have a UITableView embedded in another view like so:

\"storbyboard

相关标签:
2条回答
  • 2021-01-03 00:40

    This can be fixed by unchecking the "Under Top Bars" box in IB for the controller that has the container view in it, not the table view controller. It doesn't seem correct that you should have to do this, since, you would think that having the main view (in the container controller) extend under the navigation bar wouldn't make the embedded table view behave the way it does.

    0 讨论(0)
  • 2021-01-03 00:47

    Disabling "Adjust scroll view insets" of the containing view also helps here.

    0 讨论(0)
提交回复
热议问题