UIViewController.PresentModalViewController(UIViewController, Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
應用程式開發人員應該使用 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) 。