Initializer

init(collectionViewLayout:)

Initializes a collection view controller and configures the collection view with the provided layout.

Declaration

init(collectionViewLayout layout: UICollectionViewLayout)

Parameters

layout

The layout object to associate with the collection view. The layout controls how the collection view presents its cells and supplementary views.

Return Value

An initialized UICollectionViewController object or nil if the object could not be created.

See Also

Initializing the UICollectionViewController Object

init(nibName: String?, bundle: Bundle?)

Returns a newly initialized view controller with the nib file in the specified bundle