user3804063
user3804063

Reputation: 849

Value of type 'UICollectionView' has no member 'beginUpdates' - Swift 3 issue

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

Answers (1)

rmaddy
rmaddy

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

Related Questions