Edytuj

Udostępnij za pośrednictwem


UIButton.SetTitleColor(UIColor, UIControlState) Method

Definition

Sets the title color for the specified button state.

[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

Parameters

color
UIColor

The color to set, pass null to clear it.

This parameter can be null.

forState
UIControlState
Attributes

Remarks

This member participates in the UIAppearance styling system. See the Appearance property and the AppearanceWhenContainedIn(Type[]) method.

Applies to