UIViewController.PresentingViewController UIViewController.PresentingViewController Property

Definition

The UIViewController that is presenting this UIViewController.

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

Property Value

The UIViewController that is presenting this UIViewController.

This value can be null.

Remarks

If this UIViewController is being presented, this property holds the UIViewController that is presenting it. Note that this is slightly asymmetrical to PresentedViewController which returns a value even if it is a descendant of this that is being presented.

Applies to

See also