Instance Method

supplementaryViewForElementKind:atIndexPath:

Returns the supplementary view at the specified index path.

Declaration

- (UICollectionReusableView *)supplementaryViewForElementKind:(NSString *)elementKind atIndexPath:(NSIndexPath *)indexPath;

Parameters

elementKind

The kind of supplementary view to locate. This value is defined by the layout object. This parameter must not be nil.

indexPath

The index path of the supplementary view. This parameter must not be nil.

Return Value

The specified supplementary view or nil if the view could not be found.

See Also

Locating Items and Views in the Collection View

- indexPathForItemAtPoint:

Returns the index path of the item at the specified point in the collection view.

indexPathsForVisibleItems

An array of the visible items in the collection view.

- indexPathForCell:

Returns the index path of the specified cell.

- cellForItemAtIndexPath:

Returns the visible cell object at the specified index path.

- indexPathsForVisibleSupplementaryElementsOfKind:

Returns the index paths of all visible supplementary views of the specified type.

- visibleSupplementaryViewsOfKind:

Returns an array of the visible supplementary views of the specified kind.