我在从UICollectionView中删除单个UICollecitonViewCell时得到断言。前提:我有一个单元格(当我有两个或多个单元格时,删除效果很好)。代码如下:NSIndexPath*ip=[_photosCollectionViewindexPathForCell:cell];[_datasourceremoveItemAtIndex:ip.item];[_photosCollectionViewdeleteItemsAtIndexPaths:@[ip]];//theassertionisraised这是断言文本:NSInternalInconsistencyExcep
我在从UICollectionView中删除单个UICollecitonViewCell时得到断言。前提:我有一个单元格(当我有两个或多个单元格时,删除效果很好)。代码如下:NSIndexPath*ip=[_photosCollectionViewindexPathForCell:cell];[_datasourceremoveItemAtIndex:ip.item];[_photosCollectionViewdeleteItemsAtIndexPaths:@[ip]];//theassertionisraised这是断言文本:NSInternalInconsistencyExcep