search

Home  >  Q&A  >  body text

ios - tableViewCell reloadData的时候整个tableView会闪一下,请问如何解决?

tableViewCell 高度范围200~800都有,上拉加载更多,reloadData的时候整个tableView会闪一下,请问如何解决
找了一上午,都没能解决
stack overflow有几个链接:
1.http://stackoverflow.com/questions/22007867/why-does-uitableviewcell-flash-on-changing-height
2.http://stackoverflow.com/questions/15196927/reload-uitableview-with-new-data-caused-flickering
3.http://stackoverflow.com/questions/23312197/self-tableview-reloaddata-causes-flickering

高洛峰高洛峰2772 days ago847

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-04-17 17:19:57

    reloadData will directly trigger the re-call of all delegate and dataSource methods of tableView. In addition, you need to pay attention when using reloadData. If the dataSource instance of tableView is changed, reloadData needs to be called immediately. ReloadData cannot be called in tableView animation

    reply
    0
  • Cancelreply