---
title: "sectionIndexTitle(forSectionName:)"
framework: coredata
role: symbol
role_heading: Instance Method
path: "coredata/nsfetchedresultscontroller/sectionindextitle(forsectionname:)"
---

# sectionIndexTitle(forSectionName:)

Returns the corresponding section index entry for a given section name.

## Declaration

```swift
func sectionIndexTitle(forSectionName sectionName: String) -> String?
```

## Parameters

- `sectionName`: The name of a section.

## Return Value

Return Value The section index entry corresponding to the section with name sectionName.

## Discussion

Discussion The default implementation returns the capitalized first letter of the section name. You should override this method if you need a different way to convert from a section name to its name in the section index. Special Considerations You only need this method if you use a section index.

## See Also

### Configuring Section Information

- [sectionIndexTitles](coredata/nsfetchedresultscontroller/sectionindextitles.md)
