UIViewController.PresentedViewController Property

Definition

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

public virtual UIKit.UIViewController PresentedViewController { [Foundation.Export("presentedViewController")] get; }
member this.PresentedViewController : UIKit.UIViewController

Property Value

The UIViewController that is being presented.

This value can be null.

Attributes

Remarks

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

Applies to

See also