Reputation: 849
I was using NSFetchedResultsController for core data .
And on implementing controllerWillChangeContent() method.
self.collectionView.beginUpdates()
shows error from Xcode 8 , swift 3 .
Any suggestion.
Upvotes: 12
Views: 13034
Reputation: 318854
beginUpdates
is from UITableView
. UICollectionView
has the performBatchUpdates(_:completion:)
method.
I suggest reviewing this answer for information on using NSFetchedResultsController
and UICollectionView
.
Upvotes: 26