共用方式為


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)

適用於