UIViewController.ParentViewController 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 contains this UIViewController.
public virtual UIKit.UIViewController ParentViewController { [Foundation.Export("parentViewController")] get; }
member this.ParentViewController : UIKit.UIViewController
Property Value
Container UIViewController that is the parent of this UIViewController.
This value can be null
.
- Attributes
Remarks
Prior to iOS version 5.0, this property would return a presenting UIViewController if it was being presented and was not contained in another UIViewController. This is no longer the case; in such a situation, the presenting UIViewController will be available via PresentingViewController.