uitableview 使用reload某个cell或section的时候view会有闪烁的情况。

用下面的可以避免屏幕跳动。

 

[UIView performWithoutAnimation:^{

        [_tableView reloadSections:[NSIndexSet indexSetWithIndex:tag] withRowAnimation:UITableViewRowAnimationFade];

    }];

另外reload的时候如果有多个section每个section不同的row个数,会有section跳动的情况。这是设置tableview的esrowheight=0就行,不让他预估行高

 

其他文章请查看个人博客:http://zhangqq166.cn/

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章