共用方式為


UIViewController.PresentViewController 方法

定義

強制回應呈現檢視控制器。

[Foundation.Export("presentViewController:animated:completion:")]
public virtual void PresentViewController (UIKit.UIViewController viewControllerToPresent, bool animated, Action completionHandler);
abstract member PresentViewController : UIKit.UIViewController * bool * Action -> unit
override this.PresentViewController : UIKit.UIViewController * bool * Action -> unit

參數

viewControllerToPresent
UIViewController

在目前檢視控制器內容上顯示的檢視控制器。

animated
Boolean

布林值,指出是否要讓簡報產生動畫效果。

completionHandler
Action

完成動作,在簡報完成之後執行。

這個參數可以是 null

屬性

適用於