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/

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