Instance Property

representedElementCategory

The type of the element.

Declaration

@property(readonly) NSCollectionElementCategory representedElementCategory;

Discussion

Use this property to distinguish whether the layout attributes apply to an item, a supplementary view, a decoration view, or another type of element presented by the collection view.

See Also

Identifying the Element

indexPath

The index path 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.