共用方式為


UIButton.UIButtonAppearance.SetTitleColor(UIColor, UIControlState) 方法

定義

設定處於指定狀態的標題色彩。

[Foundation.Export("setTitleColor:forState:")]
public virtual void SetTitleColor (UIKit.UIColor color, UIKit.UIControlState forState);
abstract member SetTitleColor : UIKit.UIColor * UIKit.UIControlState -> unit
override this.SetTitleColor : UIKit.UIColor * UIKit.UIControlState -> unit

參數

color
UIColor
forState
UIControlState
屬性

適用於