Swift ios 9: Section header change position after reload data

后端 未结 7 1077
我在风中等你
我在风中等你 2021-01-17 14:53

I have plain UITableView with many sections and rows. Sections work fine. But sometimes after reload data of table, section change position. For example it was happened when

7条回答
  •  情歌与酒
    2021-01-17 15:10

    The solutions here didn't fix my problem, so I'm leaving one more possible solution that helped me.

    Set the estimatedSectionHeaderHeight, it seems that my tableView wasn't being able to calculate the initial position of my first section without it.

提交回复
热议问题