Instance Method

section(forSectionIndexTitle:at:)

Returns the section number for a given section title and index in the section index.

Declaration

func section(forSectionIndexTitle title: String, at sectionIndex: Int) -> Int

Parameters

title

The title of a section

sectionIndex

The index of a section.

Return Value

The section number for the given section title and index in the section index

Discussion

You would typically call this method when executing UITableViewDataSource’s tableView(_:sectionForSectionIndexTitle:at:) method.

See Also

Querying Section Information

var sections: [NSFetchedResultsSectionInfo]?

The sections for the fetch results.