Instance Method

cellForItemAtIndexPath:

Returns the visible cell object at the specified index path.

Declaration

- (UICollectionViewCell *)cellForItemAtIndexPath:(NSIndexPath *)indexPath;

Parameters

indexPath

The index path that specifies the section and item number of the cell.

Return Value

The cell object at the corresponding index path or nil if the cell is not visible or indexPath is out of range.

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.

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

- visibleSupplementaryViewsOfKind:

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