uicollectionview select an item immediately after reloaddata?

前端 未结 9 1319
自闭症患者
自闭症患者 2021-02-13 16:23

After calling -[UICollectionView reloadData] it takes some time for cells to be displayed, so selecting an item immediately after calling reloadData do

9条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-13 16:34

    Make sure you're calling reloadData on the main thread. That could be the cause for the delay in your cell updates.

提交回复
热议问题