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

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
[get: Foundation.Export("isMovingFromParentViewController")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual bool IsMovingFromParentViewController { get; }

See Also

UIViewController.ViewWillDisappear
UIViewController.ViewDidDisappear
UIViewController.RemoveFromParentViewController

Value

true only if called during the execution of UIViewController.ViewWillDisappear or UIViewController.ViewDidDisappear.

Remarks

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

Requirements

Namespace: UIKit
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0