共用方式為


UITabBarItem.SetBadgeTextAttributes 方法

定義

設定徽章,使其在指定的 state 中時,其具有提供的 textAttributes

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public void SetBadgeTextAttributes (UIKit.UIStringAttributes textAttributes, UIKit.UIControlState state);
member this.SetBadgeTextAttributes : UIKit.UIStringAttributes * UIKit.UIControlState -> unit

參數

textAttributes
UIStringAttributes

需要的 UIStringAttributes

state
UIControlState

UIControlState 套用的 textAttributes

屬性

適用於