O'Reilly logo

Core Data iOS Essentials by B.M. Harwani

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing the methods of the NSFetchedResultsControllerDelegate protocol

The classes that are declared as delegate of the NSFetchedResultsControllerDelegate protocol have to implement its methods, as these methods take the necessary actions (like updating the table view) when some changes are applied to the managed object. Let us get an idea of all the four methods declared in the said protocol:

  • controllerWillChangeContent
  • controllerDidChangeContent
  • controller:didChangeObject
  • controller:didChangeSection

These four methods are defined in the protocol: NSFetchedResultsControllerDelegate. The fetched results controller monitors its managed object context and calls its delegates as changes are made to its context. These methods help in updating the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required