Instance Property

maxNumberOfRows

The maximum number of rows that the collection view displays.

Declaration

@property NSUInteger maxNumberOfRows;

Discussion

When the value of this property is 0, the collection view has no maximum number of rows. The default value of this property is 0.

It is possible for a collection view to specify both a maximum number of rows and a maximum number of columns. If the number of content objects exceeds the number of displayable items (n=maxNumberOfRows * maxNumberOfColumns) only the first n items of the content array are displayed.

See Also

Legacy Collection View Support

itemPrototype

The receiver’s collection view item prototype.

Deprecated
- newItemForRepresentedObject:

Returns the collection view item that is used for the specified object.

Deprecated
selectionIndexes

The indexes of the currently selected items.

maxNumberOfColumns

The maximum number of columns that the collection view displays.

Deprecated
minItemSize

The minimum size (in points) of items in the collection view grid.

Deprecated
maxItemSize

The maximum size (in points) of items in the collection view grid.

Deprecated
- itemAtIndex:

Returns the collection view item for the represented object at the specified index.

- frameForItemAtIndex:

Returns the frame of the collection view item at the specified index.

- frameForItemAtIndex:withNumberOfItems:

Returns the frame of an item based on the number of items in the collection view.

- draggingImageForItemsAtIndexes:withEvent:offset:

This method computes and returns an image to use for dragging.