reload uitableview with new data caused flickering

后端 未结 9 1099
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:32

    Yes, try this and you are done!!

    UIView.performWithoutAnimation {
      self.tableView.reloadRows(at: [indexPath], with: .none)
    

    }

    Happy coding !!

提交回复
热议问题