Instance Property

itemSize

The default size to use for items.

Declaration

@property NSSize itemSize;

Discussion

This property contains the default size of items. If you do not provide an estimated size or implement the collectionView:layout:sizeForItemAtIndexPath: method in your delegate, the flow layout uses this value for the size of each item. All items are set to the same size. This value applies only to items and not to supplementary views.

The default value of this property is (50.0, 50.0). For more information about how item sizes are determined, see Understanding How the Flow Layout is Generated.

See Also

Configuring the Item Spacing

minimumLineSpacing

The minimum spacing (in points) to use between rows or columns.

minimumInteritemSpacing

The minimum spacing (in points) to use between items in the same row or column.

estimatedItemSize

The estimated size of items in the collection view.

sectionInset

The margins used to lay out content in a section.