NSFetchedResultsControllercan group your objects into sections based on the key you specify. For example, if your organization had a property category, you could group your objects using categoryand display them under the heading for this category.
Each UITableView(and each NSFetchedResultsController) contains at least one partition, so even if you do not use this function, you still have to deal with partitions. If you check the documentation , you will see that the objects in the property sectionsmatch NSFetchedResultsSectionInfo, which has a property objectsthat contains the objects in this section.
NSFetchedResultsController:
id <NSFetchedResultsSectionInfo> sectionInfo = [fetchedResultsController.sections objectAtIndex:0];
Task *task = [sectionInfo.objects objectAtIndex:0];
, - objectAtIndexPath:.
Task *task = [fetchedResultsController objectAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:0]];
. UIKit NSIndexPath, . , UITableViewDataSource UITableViewDelegate NSIndexPath, objectAtIndexPath:, .
Apple Core Data iPhone. . , NSFetchedResultsController.