Instance Property

collectionViewLayout

The layout used to organize the collected view’s items.

Declaration

@property(nonatomic, strong) UICollectionViewLayout *collectionViewLayout;

Discussion

Assigning a new layout object to this property causes the new layout to be applied (without animations) to the collection view’s items.

See Also

Changing the Layout

- setCollectionViewLayout:animated:

Changes the collection view’s layout and optionally animates the change.

- setCollectionViewLayout:animated:completion:

Changes the collection view’s layout and notifies you when the animations complete.

- startInteractiveTransitionToCollectionViewLayout:completion:

Changes the collection view’s current layout using an interactive transition effect.

- finishInteractiveTransition

Tells the collection view to finish an interactive transition by installing the intended target layout.

- cancelInteractiveTransition

Tells the collection view to abort an interactive transition and return to its original layout object.

Customizing Collection View Layouts

Customize a view layout by changing the size of cells in the flow or implementing a mosaic style.