Condividi tramite


UIButton.SetTitleColor(UIColor, UIControlState) Method

Definition

Sets the color for the title in the specified state.

[Foundation.Export("setTitleColor:forState:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void SetTitleColor(UIKit.UIColor? color, UIKit.UIControlState forState);
[<Foundation.Export("setTitleColor:forState:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member SetTitleColor : UIKit.UIColor * UIKit.UIControlState -> unit
override this.SetTitleColor : UIKit.UIColor * UIKit.UIControlState -> unit

Parameters

color
UIColor
forState
UIControlState
Attributes

Applies to