An Apple fetched results controller is used to efficiently manage the results returned from a Core Data fetch request to provide data usually for a UITableView or UICollectionView object. It is available in iOS 3.0 and later.
An Apple controller used to efficiently manage the results returned from a Core Data (core-data) fetch request to provide data for a UITableView
or UICollectionView
object.
From Apple Official NSFetchedResultsController Document, fetched results controllers provide the following features:
Optionally monitor changes to objects in the associated managed object context, and report changes in the results set to its delegate (see: The Controller’s Delegate).
Optionally cache the results of its computation so that if the same data is subsequently re-displayed, the work does not have to be repeated (see: The Cache).
Example:
NSFetchedResultsController *controller = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:context sectionNameKeyPath:nil cacheName:@"<#Cache name#>"]; [fetchRequest release];
Questions in Stack overflow related coredata