Instance Property

minimumLineSpacing

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

Declaration

@property CGFloat minimumLineSpacing;

Discussion

If the delegate does not implement the collectionView:layout:minimumLineSpacingForSectionAtIndex: method, the flow layout object uses the value of this property to set the spacing between rows or columns.

For a vertically scrolling layout, the value represents the minimum spacing between successive rows. For a horizontally scrolling layout, the value represents the minimum spacing between successive columns. This spacing is not applied to the space between the header view and the first line or between the last line and the footer view. Figure 1 shows how the line spacing is applied to rows of unevenly sized items, illustrating how the actual spacing between individual items may be greater than the minimum value.

Figure 1

Applying the minimum line spacing to items

The default value of this property is 10.0.

See Also

Configuring the Item Spacing

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.

itemSize

The default size to use for items.

sectionInset

The margins used to lay out content in a section.