Swift ios 9: Section header change position after reload data

后端 未结 7 1082
我在风中等你
我在风中等你 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:15

    Calling reloadData() twice also works for me, but I would suggest calling tableView.layoutSubviews() after reloadData(), which also works for me.

提交回复
热议问题