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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software