Open 18667366881 opened 6 years ago
for (NSUInteger i=0; i<array.count; i++) { [self.dataarray insertObject:array[i] atIndex:0]; } [self.tableView reloadData]; [self.tableView.mj_header endRefreshing];
下拉刷新 把数据插入到 最前面 刷新时 布局错乱 请问时啥原因 谢谢
去掉这一行 就没有布局错乱问题 请问为什么 [cell useCellFrameCacheWithIndexPath:indexPath tableView:tableView];
用了以前的高度缓存了,你必须要之前的高度缓存都清空掉,因为你是插到第0行,原来第0行的高度已经被缓存了,所以还是用之前第0行的高度。
for (NSUInteger i=0; i<array.count; i++) { [self.dataarray insertObject:array[i] atIndex:0]; } [self.tableView reloadData]; [self.tableView.mj_header endRefreshing];
下拉刷新 把数据插入到 最前面 刷新时 布局错乱 请问时啥原因 谢谢