UILineBreakMode
Constants
UILineBreakMode
Options for wrapping and truncating text.
typedef enum { UILineBreakModeWordWrap = 0, UILineBreakModeCharacterWrap, UILineBreakModeClip, UILineBreakModeHeadTruncation, UILineBreakModeTailTruncation, UILineBreakModeMiddleTruncation, } UILineBreakMode;
Constants
UILineBreakModeWordWrap
-
Wrap or clip the string only at word boundaries. This is the default wrapping option.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
UILineBreakModeCharacterWrap
-
Wrap or clip the string at the closest character boundary.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
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.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
UILineBreakModeHeadTruncation
-
Truncate text (as needed) from the beginning of the line. For multiple lines of text, only text on the first line is truncated.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
UILineBreakModeTailTruncation
-
Truncate text (as needed) from the end of the line. For multiple lines of text, only text on the last line is truncated.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
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.
Available in iOS 2.0 and later.
Declared in
UIStringDrawing.h
.
Discussion
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.