Instance Property

numberOfSections

Returns the number of sections displayed by the collection view.

Declaration

var numberOfSections: Int { get }

Return Value

The number of sections in the collection view.

See Also

Getting the State of the Collection View

func numberOfItems(inSection: Int) -> Int

Returns the number of items in the specified section.

var visibleCells: [UICollectionViewCell]

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