<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UILocalizedIndexedCollation/section(forSectionIndexTitle:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UILocalizedIndexedCollation(im)sectionForSectionIndexTitleAtIndex:"
  },
  "title" : "section(forSectionIndexTitle:)"
}
-->

# section(forSectionIndexTitle:)

Returns the section that the table view should scroll to for the given index title.

```
func section(forSectionIndexTitle indexTitleIndex: Int) -> Int
```

## Parameters

`indexTitleIndex`

An integer identifying a section-index title by its position in the array of such titles.

## Return Value

An integer identifying the table-view section associated with `indexTitleIndex`.

## Discussion

This method allows the table view to map between a given item in the section index and a given section even when there isn’t a one-to-one mapping. In its implementation of [`tableView(_:sectionForSectionIndexTitle:at:)`](/documentation/UIKit/UITableViewDataSource/tableView(_:sectionForSectionIndexTitle:at:)), the data source can call this method on the indexed-collation object specifying as an argument the passed-in index integer; it then returns the result to the table view.

---

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)