Chapter 3iOS: NSFetchedResultsController

The NSFetchedResultsController was introduced alongside Core Data when the framework was added to iOS with version 3.0. Since its introduction, developers have settled into a love--hate relationship with this class. When it’s used in the way it was intended, it works extremely well. The hate part comes in when developers attempt to use the NSFetchedResultsController outside of its intended niche—that’s when things start to fall apart quickly.

The NSFetchedResultsController is designed to be the glue between Core Data and the UITableView. When Core Data was first added to iOS, the Core Data team realized that there was a significant amount of work to get Core Data and table views talking well. They removed ...

Get Core Data in Objective-C, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.