Asks the data source to return the titles for the index items to display for the collection view.
- iOS 10.3+
- Mac Catalyst 13.0+
- tvOS 10.2+
The collection view object requesting this information.
An array of strings to use for the title of each index entry. For example, you might return an array of strings containing the letters of the alphabet (
["A", "B", "C", ..., "Z"]).
Use this method to support fast scrolling through your collection view's content. The strings you return are displayed in an index view that can be used to jump to specific locations in the collection view's content. If you implement this method, you must also implement the
collection method to specify the collection view item associated with each index title.