---
title: sections
framework: coredata
role: symbol
role_heading: Instance Property
path: coredata/nsfetchedresultscontroller/sections
---

# sections

The sections for the fetch results.

## Declaration

```swift
var sections: [any NSFetchedResultsSectionInfo]? { get }
```

## Discussion

Discussion The objects in the sections array implement the NSFetchedResultsSectionInfo protocol. You typically use the sections array when implementing UITableViewDataSource methods, such as numberOfSections(in:) and tableView(_:titleForHeaderInSection:).

## See Also

### Querying Section Information

- [section(forSectionIndexTitle:at:)](coredata/nsfetchedresultscontroller/section(forsectionindextitle:at:).md)
