SectionIndexTitles
public protocol SectionIndexTitles
Providing section index titles.
-
Section Index Titles for
UITableView
. Related toUITableViewDataSource
methodsectionIndexTitlesForTableView
.Declaration
Swift
var sectionIndexTitles: [String]? { get }
-
Asks the data provider to return the index of the section having the given title and section title index.
Declaration
Swift
func indexPath(forSectionIndexTitle sectionIndexTitle: String, at index: Int) -> IndexPath
Parameters
sectionIndexTitle
The title as displayed in the section index
index
An index number identifying a section title in the array returned by
sectionIndexTitles
Return Value
An index number identifying a section.