UIViewController.DefinesPresentationContext Propiedad

Definición

Especifica si se muestra este UIViewControllerView objeto al presentar otro UIViewController.

public virtual bool DefinesPresentationContext { [Foundation.Export("definesPresentationContext")] get; [Foundation.Export("setDefinesPresentationContext:")] set; }
member this.DefinesPresentationContext : bool with get, set

Valor de propiedad

El valor predeterminado es false.

Atributos

Comentarios

Cuando una aplicación presenta una vista (es decir, mediante PresentViewController(UIViewController, Boolean, Action), PresentModalViewController(UIViewController, Boolean)o PresentMoviePlayerViewController(MPMoviePlayerViewController)), iOS llama a este método en la presentación UIViewControllerde . Si este método devuelve false, iOS llamará a este método en ParentViewController. Si no hay ningún UIViewController valor devuelto trueen la cadena , el elemento presentado UIViewController se presenta mediante el contexto raíz UIViewController .

Se aplica a