Instance Property

representedElementCategory

The type of the item.

Declaration

@property(nonatomic, readonly) UICollectionElementCategory representedElementCategory;

Discussion

You can use the value in this property to distinguish whether the layout attributes are intended for a cell, supplementary view, or decoration view.

See Also

Identifying the Referenced Item

indexPath

The index path of the item in the collection view.

representedElementKind

The layout-specific identifier for the target view.