UIKit.UIViewController.IsMovingToParentViewController Property
true if the current UIKit.UIViewController is in the process of being added to a parent UIKit.UIViewController.

Syntax

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

See Also

UIViewController.ViewDidAppear
UIViewController.ViewDidDisappear
UIViewController.IsBeingPresented

Value

true only if called during the execution of UIViewController.ViewWillAppear or UIViewController.ViewDidAppear.

Remarks

The process of adding a UIKit.UIViewController to a parent UIKit.UIViewController is bookended by the functions UIViewController.ViewWillAppear and UIViewController.ViewDidAppear. 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