UIViewController.PresentingViewController Property

Definition

The UIViewController that is presenting this UIViewController.

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

Property Value

The UIViewController that is presenting this UIViewController.

This value can be null.

Attributes

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