UIViewController.PresentModalViewController(UIViewController, Boolean) 方法

定义

应用程序开发人员应使用 PresentViewController(UIViewController, Boolean, Action) 而不是此已弃用的方法。

[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

参数

modalViewController
UIViewController

UIViewController要呈现的 。

animated
Boolean

true 如果应对演示文稿进行动画处理,则为 。

属性

注解

此方法已弃用,应用程序开发人员应改用 PresentViewController(UIViewController, Boolean, Action) 此方法。

适用于