UIView.WillMoveToSuperview(UIView) UIView.WillMoveToSuperview(UIView) Method


Called before the Superview changes.

public virtual void WillMoveToSuperview (UIKit.UIView newsuper);
abstract member WillMoveToSuperview : UIKit.UIView -> unit
override this.WillMoveToSuperview : UIKit.UIView -> unit


UIView UIView

The UIView to which this UIView is being moved.

This parameter can be null.


This method is called by the runtime when assigning the Superview property and is invoked shortly before the change is made.

By default, this method does nothing. Application developers can override the method in order to perform additional processing.

Applies to

See also