共用方式為


UITabBarController.SetViewControllers(UIViewController[], Boolean) 方法

定義

指派此 UITabBarController 介面所顯示的 UIViewControllers。

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

參數

viewControllers
UIViewController[]
animated
Boolean
屬性

適用於