Array
extension Array: SectionIndexTitles where Element == String
extension Array: SectionTexts where Element == String?
-
Section Index Titles for
UITableView. Related toUITableViewDataSourcemethodsectionIndexTitlesForTableView.Declaration
Swift
public 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
public func indexPath(forSectionIndexTitle sectionIndexTitle: String, at index: Int) -> IndexPathParameters
sectionIndexTitleThe title as displayed in the section index
indexAn index number identifying a section title in the array returned by
sectionIndexTitlesReturn Value
An index number identifying a section.
-
Generates a optional section title for a given section
Declaration
Swift
public func text(inSection section: Int) -> String?Parameters
sectionthe section to generate the title for
Return Value
a section header title
View on GitHub
Array Extension Reference