Instance Method

didTransitionFromLayout:toLayout:

Tells your view that the layout object of the collection view changed.

Declaration

- (void)didTransitionFromLayout:(UICollectionViewLayout *)oldLayout toLayout:(UICollectionViewLayout *)newLayout;

Parameters

oldLayout

The collection view’s previous layout object.

newLayout

The current layout object associated with the collection view.

Discussion

The default implementation of this method does nothing. Subclasses can override this method and use it to finalize any behaviors associated with the change in layouts.

See Also

Managing Layout Changes

- preferredLayoutAttributesFittingAttributes:

Gives the cell a chance to modify the attributes provided by the layout object.

- applyLayoutAttributes:

Applies the specified layout attributes to the view.

- willTransitionFromLayout:toLayout:

Tells your view that the layout object of the collection view is about to change.

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