UIViewController.PresentedViewController Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.