Instance Property

numberOfLines

Determines the number of lines to draw.

Declaration

@property(nonatomic) NSInteger numberOfLines;

Discussion

The default value is 1 (a single line). A value of 0 in interpreted as an unlimited number of lines. If the height of the text reaches the number of lines, the text will be truncated using the line break mode.

See Also

Defining a Label's Line-Breaking Behavior

preferredMaxLayoutWidth

The width, in screen points, after which line-break mode should be applied.

lineBreakMode

Determines the line-break mode for multiple lines.