Enumeration

UIControlContentVerticalAlignment

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

Declaration

typedef enum UIControlContentVerticalAlignment : NSInteger {
    ...
} UIControlContentVerticalAlignment;

Overview

You use these constants as the value of the contentVerticalAlignment property.

Topics

Constants

UIControlContentVerticalAlignmentCenter

Aligns the content vertically in the center of the control.

UIControlContentVerticalAlignmentTop

Aligns the content vertically at the top in the control (the default).

UIControlContentVerticalAlignmentBottom

Aligns the content vertically at the bottom in the control

UIControlContentVerticalAlignmentFill

Aligns the content vertically to fill the content rectangle; images may be stretched.

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.

highlighted

A Boolean value indicating whether the control draws a highlight.

contentVerticalAlignment

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

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.