UIViewController.DefinesPresentationContext 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.
Specifies whether this UIViewController’s View is shown when presenting another UIViewController.
public virtual bool DefinesPresentationContext { [Foundation.Export("definesPresentationContext")] get; [Foundation.Export("setDefinesPresentationContext:")] set; }
member this.DefinesPresentationContext : bool with get, set
Property Value
The default is false
.
- Attributes
Remarks
When an application presents a view (i.e., using PresentViewController(UIViewController, Boolean, Action), PresentModalViewController(UIViewController, Boolean), or PresentMoviePlayerViewController(MPMoviePlayerViewController)), iOS calls this method on the presenting UIViewController. If this method returns false
, iOS will call this method on ParentViewController. If no UIViewController in the chain return true
, the presented UIViewController is presented using the root UIViewController context.