Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 271
user3804063 Avatar asked Jan 03 '17 07:01

user3804063


1 Answers

beginUpdates is from UITableView. UICollectionView has the performBatchUpdates(_:completion:) method.

I suggest reviewing this answer for information on using NSFetchedResultsController and UICollectionView.

like image 75
rmaddy Avatar answered Sep 22 '22 14:09

rmaddy