Contents

collectionView(_:numberOfItemsInSection:)

Returns the number of items in a specific section of the collection view.

Declaration

func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int

Parameters

  • collectionView :

    The collection view the view controller displays.

  • section :

    An integer value for the section of the collection view.

See Also

Configuring the Grid Collection View