apple file :
@property(nonatomic) NSLineBreakMode lineBreakMode; // default is
NSLineBreakByTruncatingTail. usedfor single and multiple lines of text For multiline and multiline text
-> Character truncation type (lineBreakMode // Set the display format when the text is too long ) // NSParagraphStyle typedef
NS_ENUM(NSInteger, NSLineBreakMode) { NSLineBreakByWordWrapping = 0, // Wrap at
word boundaries, default NSLineBreakByCharWrapping, // Wrap at character
boundaries NSLineBreakByClipping, // Simply clip NSLineBreakByTruncatingHead, //
Truncate at head of line: "...wxyz" NSLineBreakByTruncatingTail, // Truncate at
tailof line: "abcd..." NSLineBreakByTruncatingMiddle // Truncate middle of line:
"ab...yz" } NS_ENUM_AVAILABLE(10_0, 6_0);
explain :
UILineBreakModeWordWrap = 0,
Word wrapping , Truncate in words .

Line feed in characters , Truncate in characters .
label.lineBreakMode = NSLineBreakByCharWrapping; Display in characters
show , The latter part is omitted and not shown .
label.lineBreakMode = NSLineBreakByClipping; Cut inside the same width as the text
Capacity length , The second half was deleted .
label.lineBreakMode = NSLineBreakByTruncatingHead; Front part text
with …… Mode omission , Show trailing text content .
label.lineBreakMode = NSLineBreakByTruncatingMiddle; The content in the middle
with …… Mode omission , Display the text content at the beginning and the end .
label.lineBreakMode = NSLineBreakByTruncatingTail; What's in the end
with …… Mode omission , Displays the text content of the header .
label.lineBreakMode = NSLineBreakByWordWrapping; Display in words
show , The latter part is omitted and not shown .

©2019-2020 Toolsou All rights reserved,
Java Swing JList: List box components Accurate mobile phone number capture , Big data of operators The difference between memory overflow and memory leak , Causes and Solutions Website mobile phone number capture method stay Vue Use in Web Worker3 species Python data structure ,13 Creation methods , This is the conclusion , Great ! What's the difference in server prices ? Basic definition and use of function ‘ To be continued SQL Server Database Glossary Chrome OS, For programmers and Windows What does it mean ? Internet Marketing