共用方式為


UITabBarControllerDelegate.ShouldSelectViewController 方法

定義

是否應該讓指定的 UIViewController 成為作用中。

[Foundation.Export("tabBarController:shouldSelectViewController:")]
public virtual bool ShouldSelectViewController (UIKit.UITabBarController tabBarController, UIKit.UIViewController viewController);
abstract member ShouldSelectViewController : UIKit.UITabBarController * UIKit.UIViewController -> bool
override this.ShouldSelectViewController : UIKit.UITabBarController * UIKit.UIViewController -> bool

參數

tabBarController
UITabBarController
viewController
UIViewController

傳回

屬性

適用於