<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.12.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSFetchedResultsController/sectionIndexTitle(forSectionName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSFetchedResultsController(im)sectionIndexTitleForSectionName:"
  },
  "title" : "sectionIndexTitle(forSectionName:)"
}
-->

# sectionIndexTitle(forSectionName:)

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

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

## Parameters

`sectionName`

The name of a section.

## Return Value

The section index entry corresponding to the section with name `sectionName`.

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)