Assertion Failure in UICollectionViewData validateLayoutInRect on ios7
Assertion Failure in UICollectionViewData validateLayoutInRect on iOS7. I am trying to delete all UICollectionView items, one by one, using a for loop; I posted my code below. I delete the UICollectionView items using deleteItemsAtIndexPaths . It's working perfectly on iOS6 , but crashes in iOS7 with this exception: Assertion Failure in UICollectionViewData validateLayoutInRect I delete the object from collectionArray then self.collectionView , one by one, using indexPath . When I delete the 4th object its raises Assertion failure on iOS7. Here I am using performBatchUpdates . Please help me