Instance Method

visibleSupplementaryViewsOfKind:

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

Declaration

- (NSArray<UICollectionReusableView *> *)visibleSupplementaryViewsOfKind:(NSString *)elementKind;

Parameters

elementKind

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

Return Value

An array of the visible supplementary views. If no supplementary views are visible, the returned array is empty.

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.

- supplementaryViewForElementKind:atIndexPath:

Returns the supplementary view at the specified index path.