Instance Method

initWithCollectionViewLayout:

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

Declaration

- (instancetype)initWithCollectionViewLayout:(UICollectionViewLayout *)layout;

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

- initWithNibName:bundle:

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