Instance Property

visibleCells

Returns an array of visible cells currently displayed by the collection view.

Declaration

@property(nonatomic, readonly) NSArray<__kindof UICollectionViewCell *> *visibleCells;

Return Value

An array of UICollectionViewCell objects. If no cells are visible, this method returns an empty array.

Discussion

This method returns the complete list of visible cells displayed by the collection view.

See Also

Getting the State of the Collection View

numberOfSections

Returns the number of sections displayed by the collection view.

- numberOfItemsInSection:

Returns the number of items in the specified section.