Instance Property


Returns the list of section-index titles for the table view


var sectionIndexTitles: [String] { get }


This property contains the localized list of section-index titles sorted according to the specified ordering (for example, A through Z in US English). In its implementation of sectionIndexTitles(for:), the data source can call this method on the indexed-collation object and pass back the result.

See Also

Providing Section Index Data to the Table View

var sectionTitles: [String]

Returns the list of section titles for the table view.

func section(forSectionIndexTitle: Int) -> Int

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