我正在使用insertItemsAtIndexPaths但我想了解這個函數如何影響我的索引路徑的排序。ios NSIndexPath insertItemsAtIndexPaths UICollectionView
我有1節和多個項目(或行)。我正在使用UICollectionView。
當我插入新項目時,我用[NSIndexPath indexPathForItem:0 inSection:0]使用insertItemsAtIndexPaths。我的問題是,當我在indexPathForItem 0處插入時,已經在此collectionview中的索引路徑是否會發生移位?換句話說,我說我looped indexPathForItem:0。這是否會在UICollectionView的開頭推動項目?