Instance Property

sections

The sections for the fetch results.

Declaration

@property(nonatomic, readonly) NSArray<id<NSFetchedResultsSectionInfo>> *sections;

Discussion

The objects in the sections array implement the NSFetchedResultsSectionInfo protocol.

You typically use the sections array when implementing UITableViewDataSource methods, such as numberOfSectionsInTableView: and tableView:titleForHeaderInSection:.

See Also

Querying Section Information

- sectionForSectionIndexTitle:atIndex:

Returns the section number for a given section title and index in the section index.