Instance Property


A Boolean indicating whether to recompute the layout attributes for items and views in the layout.


@property(nonatomic) BOOL invalidateFlowLayoutAttributes;


The default value of this property is NO. Set this property to YES if there are changes to the position of items on the screen. For example, the flow layout object sets this property to YES when the collection view’s bounds change in a way that affects the number of items in a column or row.

When this property is set to YES, the flow layout object recomputes the layout attributes for its items and views. If the invalidateFlowLayoutDelegateMetrics property is set to NO it recomputes this information without asking for new size information.

See Also

Specifying What to Invalidate


A Boolean indicating whether to recompute the size of items and views in the layout.

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