UIPageViewController.SetViewControllers 方法

定义

设置要显示的 UIViewControllers。

[Foundation.Export("setViewControllers:direction:animated:completion:")]
public virtual void SetViewControllers (UIKit.UIViewController[] viewControllers, UIKit.UIPageViewControllerNavigationDirection direction, bool animated, UIKit.UICompletionHandler completionHandler);
abstract member SetViewControllers : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool * UIKit.UICompletionHandler -> unit
override this.SetViewControllers : UIKit.UIViewController[] * UIKit.UIPageViewControllerNavigationDirection * bool * UIKit.UICompletionHandler -> unit

参数

viewControllers
UIViewController[]
animated
Boolean
completionHandler
UICompletionHandler

动画完成时要调用的方法。

此参数可以为 null

属性

适用于