什么情况下会发生这种现象呢?
1.tableview有Section组,2.cell里有展开和折叠情况(类型QQ好友那种展开和折叠)。

解决方案:加入下面代码就OK了
self.tableView.estimatedRowHeight = 0.0;
self.tableView.estimatedSectionHeaderHeight = 0.0;
self.tableView.estimatedSectionFooterHeight = 0.0;
什么情况下会发生这种现象呢?
1.tableview有Section组,2.cell里有展开和折叠情况(类型QQ好友那种展开和折叠)。
解决方案:加入下面代码就OK了
self.tableView.estimatedRowHeight = 0.0;
self.tableView.estimatedSectionHeaderHeight = 0.0;
self.tableView.estimatedSectionFooterHeight = 0.0;
本文标题:UITableView 刷新reloadSections界面错乱
本文链接:https://www.haomeiwen.com/subject/mfwjcrtx.html
网友评论