Enumeration

UILineBreakMode

Options for wrapping and truncating text.

Declaration

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

Overview

For methods that draw at a specified point (as opposed to those that draw in a rectangular region), these options specify the clipping behavior that is applied to the string.

Topics

Constants

UILineBreakModeWordWrap

Wrap or clip the string only at word boundaries. This is the default wrapping option.

UILineBreakModeCharacterWrap

Wrap or clip the string at the closest character boundary.

UILineBreakModeClip

Clip the text when the end of the drawing rectangle is reached. This option could result in a partially rendered character at the end of a string.

UILineBreakModeHeadTruncation

Truncate text (as needed) from the beginning of the line. For multiple lines of text, only text on the first line is truncated.

UILineBreakModeTailTruncation

Truncate text (as needed) from the end of the line. For multiple lines of text, only text on the last line is truncated.

UILineBreakModeMiddleTruncation

Truncate text (as needed) from the middle of the line. For multiple lines of text, text is truncated only at the midpoint of the line.

See Also

Strings

NSStringDrawingContext

An object that manages metrics used when drawing attributed strings.

NSStringDrawingOptions

Constants for the rendering options for a string when it is drawn.

UIBaselineAdjustment

Vertical adjustment options.

UITextAlignment

Options for aligning text horizontally.

Deprecated
UITextAttributeFont

Key to the font in a text attributes dictionary.

Deprecated
UITextAttributeTextColor

Key to the text color in a text attributes dictionary.

Deprecated
UITextAttributeTextShadowColor

Key to the text shadow color in a text attributes dictionary.

Deprecated
UITextAttributeTextShadowOffset

Key to the offset used for the text shadow in a text attributes dictionary.

Deprecated