Asks the data source to return the index of the section having the given title and section title index.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 10.2+
The table-view object requesting this information.
The title as displayed in the section index of
An index number identifying a section title in the array returned by
An index number identifying a section.
This method is passed the index number and title of an entry in the section index list and should return the index of the referenced section. To be clear, there are two index numbers in play here: an index to a section index title in the array returned by
section, and an index to a section of the table view; the former is passed in, and the latter is returned. You implement this method only for table views with a section index list—which can only be table views created in the plain style (
UITable). Note that the array of section titles returned by
section can have fewer items than the actual number of sections in the table view.