reload uitableview with new data caused flickering

后端 未结 9 1124
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:42

    what work in my project was :

    UIView.PerformWithoutAnimation(() =>
    {
    tableView.ReloadData();
    tableView.LayoutIfNeeded();
    });
    

    (it's in c# xamarin...but the same with swift of objective c)

提交回复
热议问题