UIViewController.PresentModalViewController(UIViewController, Boolean) Método

Definición

Los desarrolladores de aplicaciones deben usar PresentViewController(UIViewController, Boolean, Action) en lugar de este método en desuso.

[Foundation.Export("presentModalViewController:animated:")]
[ObjCRuntime.Deprecated(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, "Use 'PresentViewController (UIViewController, bool, NSAction)' instead and set the 'ModalViewController' property to true.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PresentModalViewController (UIKit.UIViewController modalViewController, bool animated);
abstract member PresentModalViewController : UIKit.UIViewController * bool -> unit
override this.PresentModalViewController : UIKit.UIViewController * bool -> unit

Parámetros

modalViewController
UIViewController

que UIViewController se va a presentar.

animated
Boolean

true si la presentación debe animarse.

Atributos

Comentarios

Este método está en desuso y los desarrolladores de aplicaciones deben usar PresentViewController(UIViewController, Boolean, Action) en su lugar.

Se aplica a