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,
The 11th Blue Bridge Cup python The real topic of the University Group National Games JavaSwing To achieve a simple Lianliankan games 【Spring Source code analysis 】42-@Conditional Detailed explanation element-ui Step on pit record 2019PHP Interview questions ( Continuously updated )PHPJava Misunderstanding —— Method overloading is a manifestation of polymorphism ? First issue 500 100 million , Set up a new Department , What is Tencent going to do ? Google chrome The browser can't open the web page , But what if other browsers can open it ? Regression of dependent variable order categories (R language )【Golang Basic series 10 】Go language On conditional sentences if