共用方式為


UIPageViewController.SetViewControllersAsync 方法

定義

設定要顯示的 UIViewControllers。

public virtual System.Threading.Tasks.Task<bool> SetViewControllersAsync(UIKit.UIViewController[] viewControllers, UIKit.UIPageViewControllerNavigationDirection direction, bool animated);
abstract member SetViewControllersAsync : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool -> System.Threading.Tasks.Task<bool>
override this.SetViewControllersAsync : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool -> System.Threading.Tasks.Task<bool>

參數

viewControllers
UIViewController[]
animated
Boolean

傳回

表示非同步 SetViewControllers 作業的工作。 TResult 參數的值是 UICompletionHandler

備註

SetViewControllersAsync 方法適合搭配 C# 非同步使用,方法是將控制項傳回給代表作業之 Task 的呼叫端。

即將加入。

適用於