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