UIViewController.IsMovingFromParentViewController UIViewController.IsMovingFromParentViewController Property

Definition

true if the current UIViewController is in the process of being removed from its parent UIViewController.

[get: Foundation.Export("isMovingFromParentViewController")]
public virtual bool IsMovingFromParentViewController { get; }
member this.IsMovingFromParentViewController : bool

Property Value

true only if called during the execution of ViewWillDisappear(Boolean) or ViewDidDisappear(Boolean).

Remarks

The process of removing a UIViewController from its parent UIViewController is bookended by the functions ViewWillDisappear(Boolean) and ViewDidDisappear(Boolean). While those are executing, this property will return true, at all other times, it will return false.

Applies to

See also