共用方式為


UIBarItem.SetTitleTextAttributes(UITextAttributes, UIControlState) 方法

定義

指定 UIBarItem 標題的文字屬性。

public void SetTitleTextAttributes (UIKit.UITextAttributes attributes, UIKit.UIControlState state);
member this.SetTitleTextAttributes : UIKit.UITextAttributes * UIKit.UIControlState -> unit

參數

attributes
UITextAttributes

指定的標題文字屬性。

state
UIControlState

已指定 UIControlState

適用於