Instance Property

indexPath

The index path of the element.

Declaration

@property(strong) NSIndexPath *indexPath;

Discussion

Use the index path to locate information about the item in your app’s data structures. For supplementary and decoration views, you must also use the representedElementKind property to identify the element.

See Also

Identifying the Element

representedElementCategory

The type of the element.

representedElementKind

The identifier for specific elements of your collection view interface.

NSCollectionElementKindInterItemGapIndicator

The element kind string assigned to the attributes object when it represents an inter-item gap.

NSCollectionElementKindSectionFooter

A supplementary view that acts as a footer for a given section.

NSCollectionElementKindSectionHeader

A supplementary view that acts as a header for a given section.