Instance Property

baselineAdjustment

Controls how text baselines are adjusted when text needs to shrink to fit in the label.

Declaration

@property(nonatomic) UIBaselineAdjustment baselineAdjustment;

Discussion

If the adjustsFontSizeToFitWidth property is set to YES, this property controls the behavior of the text baselines in situations where adjustment of the font size is required. The default value of this property is UIBaselineAdjustmentAlignBaselines. This property is effective only when the numberOfLines property is set to 1.

See Also

Sizing the Label’s Text

adjustsFontSizeToFitWidth

A Boolean value indicating whether the font size should be reduced in order to fit the title string into the label’s bounding rectangle.

allowsDefaultTighteningForTruncation

A Boolean value indicating whether the label tightens text before truncating.

minimumScaleFactor

The minimum scale factor supported for the label’s text.

numberOfLines

The maximum number of lines to use for rendering text.

adjustsLetterSpacingToFitWidth

A Boolean value indicating whether spacing between letters should be adjusted to fit the string within the label’s bounds rectangle.

Deprecated
minimumFontSize

The size of the smallest permissible font with which to draw the label’s text.

Deprecated