reload uitableview with new data caused flickering

后端 未结 9 1100
Happy的楠姐
Happy的楠姐 2020-12-16 11:55

I added an infinite scrolling feature and realized that whenever I reload the uitableview, the view flickers..I am not sure how to fix the flickering at this point. Please h

9条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-16 12:24

    Why don't you simply call reloadSections method instead of [self.tableView reloadData];

    [self.tableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationNone];
    

提交回复
热议问题