UIView.RemoveFromSuperview UIView.RemoveFromSuperview Method

Definition

Detaches the UIView from its Superview.

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

Remarks

Application developers must not call this method from within the UIView's DrawRect(CGRect, UIViewPrintFormatter) method.

Applies to