【发布时间】:2014-03-25 21:14:27
【问题描述】:
我正在使用 insertItemsAtIndexPaths,但我试图了解此函数如何影响我的索引路径的排序。
我有 1 个部分和多个项目(或行)。我正在使用 UICollectionView。
当我插入新项目时,我使用带有 [NSIndexPath indexPathForItem:0 inSection:0] 的 insertItemsAtIndexPaths。我的问题是,当我在 indexPathForItem 0 处插入时,这个 collectionview 中已经存在的索引路径是否会发生变化?换句话说,假设我循环了 indexPathForItem:0。这实际上会在 UICollectionView 的开头推送项目吗?
【问题讨论】:
标签: ios insert uicollectionview nsindexpath