sectionTitles
Returns the list of section titles for the table view.
Declaration
var sectionTitles: [String] { get }Discussion
This property contains the localized list of section titles sorted according to the specified ordering (for example, A through Z in US English). In its implementation of tableView(_:titleForHeaderInSection:), the data source can call this method on the indexed-collation object, passing in the section index and returning the result.