UIView.WillMoveToWindow(UIWindow) Method

Definition

This method is called by the runtime when assigning a new UIWindow to the UIView's view hierarcy. This method will be called on all UIViews in the hierarchy, not just the top-level UIView.

[Foundation.Export("willMoveToWindow:")]
public virtual void WillMoveToWindow (UIKit.UIWindow window);
abstract member WillMoveToWindow : UIKit.UIWindow -> unit
override this.WillMoveToWindow : UIKit.UIWindow -> unit

Parameters

window
UIWindow

Called before the window at the root of the UIView's view hierarchy changes.

This parameter can be null.

Attributes

Applies to