Bearbeiten

Freigeben über


UIViewController.PresentModalViewController(UIViewController, Boolean) Method

Definition

Application developers should use PresentViewController(UIViewController, Boolean, Action) instead of this deprecated method.

[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

Parameters

modalViewController
UIViewController

The UIViewController to be presented.

animated
Boolean

true if the presentation should be animated.

Attributes

Remarks

This method is deprecated and application developers should use PresentViewController(UIViewController, Boolean, Action) instead.

Applies to