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 . anchorGodTableView reloadData ];

3.tableView结束下拉状态

[ _anchorGodTableView . mj_footer endRefreshing ];
[ _anchorGodTableView . mj_header endRefreshing ];

4.隐藏下拉选项

_anchorGodTableView . mj_footer . hidden = YES ;
 
 如果还会跳动的话,就延时去执行  _anchorGodTableView . mj_footer . hidden  =  YES ;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM