Instance Property


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


@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.


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

See Also

Getting the State of the Collection View


Returns the number of sections displayed by the collection view.

- numberOfItemsInSection:

Returns the number of items in the specified section.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software