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,
QQ Login interface implementation code implementation mysql Addition, deletion, modification and query of database JAVA Experiment 4 set and functional programming experiment about String How to create objects VHDL——4 choose 1 Data selector C language ( Guess numbers games ) Blue Bridge Cup MCU advanced module --NE555 I don't memorize eight part essays , You go to the interview ? Hill sorting of sorting algorithm ——c++ realization python What does built-in function mean _python What are the built-in functions