美文网首页
[iOS] UICollection 的数据刷新

[iOS] UICollection 的数据刷新

作者: manajay | 来源:发表于2018-05-16 20:37 被阅读22次

    翻墙: A better way to update UICollectionView data in Swift with diff framework

    performBatchUpdates 要先deleteinsert

    Deletes are processed before inserts in batch operations.
     This means the indexes for the deletions are processed relative to the indexes of the collection view’s state before the batch operation,
     and the indexes for the insertions are processed relative to the indexes of the state after all the deletions in the batch operation.
    

    相关文章

      网友评论

          本文标题:[iOS] UICollection 的数据刷新

          本文链接:https://www.haomeiwen.com/subject/rspmdftx.html