iOS 7, table header view does not float

后端 未结 1 1765
野性不改
野性不改 2021-02-08 23:16

I have a UITableView set up on my app, which runs on iOS 7. I has one section and it loads images into custom cells and it scrolls under the navigation bar

1条回答
  •  不知归路
    2021-02-09 00:09

    Change the table view's style from Grouped to Plain.

    From the official documentation, regarding the Plain table view style:

    A plain table view can have one or more sections, sections can have one or more rows, and each section can have its own header or footer title. (A header or footer may also have a custom view, for instance one containing an image). When the user scrolls through a section with many rows, the header of the section floats to the top of the table view and the footer of the section floats to the bottom.

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