UICollectionViewLayout.InvalidateLayout UICollectionViewLayout.InvalidateLayout Method

Definition

Overloads

InvalidateLayout() InvalidateLayout()

Invalidates the current layout and initiates an update.

InvalidateLayout(UICollectionViewLayoutInvalidationContext) InvalidateLayout(UICollectionViewLayoutInvalidationContext)

Forces recomputation and application of the collection view.

InvalidateLayout() InvalidateLayout()

Invalidates the current layout and initiates an update.

[Foundation.Export("invalidateLayout")]
public virtual void InvalidateLayout ();
abstract member InvalidateLayout : unit -> unit
override this.InvalidateLayout : unit -> unit

InvalidateLayout(UICollectionViewLayoutInvalidationContext) InvalidateLayout(UICollectionViewLayoutInvalidationContext)

Forces recomputation and application of the collection view.

[Foundation.Export("invalidateLayoutWithContext:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void InvalidateLayout (UIKit.UICollectionViewLayoutInvalidationContext context);
abstract member InvalidateLayout : UIKit.UICollectionViewLayoutInvalidationContext -> unit
override this.InvalidateLayout : UIKit.UICollectionViewLayoutInvalidationContext -> unit

Parameters

Applies to