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
tableView.reloadData() tableView.layoutIfNeeded() tableView.beginUpdates() tableView.endUpdates()
This help me out.
Double reloadData will cause flickering while this solution won't.
reloadData