UItableView UIcollectionView下拉刷新会跳动?看了此篇就能解决这个Bug了
顺序如下:
1.数组添加:
for (id model in modellist.list) {
IDSCommentWeplayList *commentListModel = [IDSCommentWeplayList mj_objectWithKeyValues:model];
[_commentArray cl_addObject:commentListModel];
IDSWeplayCellHeight *cellHeight = [[IDSWeplayCellHeight alloc] init];
cellHeight.cellheight = 200;
[_cellheightArray cl_addObject:cellHeight];
}
2.更新网络数据
[self.anchorGodTableViewreloadData];
3.tableView结束下拉状态
[_anchorGodTableView.mj_footerendRefreshing];
[_anchorGodTableView.mj_headerendRefreshing];
4.隐藏下拉选项
_anchorGodTableView.mj_footer.hidden = YES;
如果还会跳动的话,就延时去执行 _anchorGodTableView.mj_footer.hidden = YES;