UIKit.UIViewController.PresentedViewController Property
The UIKit.UIViewController that is being presented by this UIKit.UIViewController or one of this’s ancestor UIKit.UIViewControllers.

Syntax

[ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
[get: Foundation.Export("presentedViewController")]
[get: ObjCRuntime.Availability(Introduced=ObjCRuntime.Platform.iOS_5_0)]
public virtual UIViewController PresentedViewController { get; }

See Also

UIViewController.ParentViewController
UIViewController.PresentingViewController

Value

The UIKit.UIViewController that is being presented.

This value can be null.

Remarks

This method will return a presented UIKit.UIViewController even if the presenting UIKit.UIViewController is an ancestor of this UIKit.UIViewController. Note that this is slightly asymmetrical to UIViewController.PresentingViewController which returns null when this is an intermediate UIKit.UIViewController.

Requirements

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