Instance Property

highlighted

A Boolean value indicating whether the control draws a highlight.

Declaration

@property(nonatomic, getter=isHighlighted) BOOL highlighted;

Discussion

When the value of this property is YES, the control draws a highlight; otherwise, the control does not draw a highlight. Controls automatically set and clear this state in response to appropriate touch events. You can change the value of this property as needed to apply or remove a highlight programmatically

The default value of this property is NO for a newly created control. You can set a control’s initial selected state in your storyboard file.

See Also

Configuring the Control’s Attributes

state

The state of the control, specified as a bitmask value.

enabled

A Boolean value indicating whether the control is enabled.

selected

A Boolean value indicating whether the control is in the selected state.

contentVerticalAlignment

The vertical alignment of content within the control’s bounds.

UIControlContentVerticalAlignment

Constants for specifying the vertical alignment of content (text and images) in a control.

contentHorizontalAlignment

The horizontal alignment of content within the control’s bounds.

effectiveContentHorizontalAlignment

The horizontal alignment currently in effect for the control.

UIControlContentHorizontalAlignment

The horizontal alignment of content (text and images) within a control.