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
属性

适用于