UIKit.UIViewController.ParentViewController Property
The UIKit.UIViewController that contains this UIKit.UIViewController.

Syntax

[get: Foundation.Export("parentViewController")]
public virtual UIViewController ParentViewController { get; }

See Also

UIViewController.PresentingViewController

Value

Container UIKit.UIViewController that is the parent of this UIKit.UIViewController.

This value can be null.

Remarks

Prior to iOS version 5.0, this property would return a presenting UIKit.UIViewController if it was being presented and was not contained in another UIKit.UIViewController. This is no longer the case; in such a situation, the presenting UIKit.UIViewController will be available via UIViewController.PresentingViewController.

Requirements

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