在UICollectionView
中执行insertItemsAtIndexPaths
时,我遇到了以下错误:
断言失败:
-[UICollectionViewData indexPathForItemAtGlobalIndex:],
/SourceCache/UIKit/UIKit-2372/UICollectionViewData.m:442
2012-09-26 18:12:34.432
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason: 'request for index path for global index 805306367
when there are only 1 items in the collection view'
我已经检查过,我的数据源只包含一个元素。 有什么见解,为什么会发生这种情况?如果需要更多信息,我肯定可以提供。