UILineBreakMode的各种情况分析

简介: <span style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px">typedef enum {</span><br style="color:rgb(51,51,51); font-family:Arial; font-size:14px; line-height:26px"><sp
typedef enum {
   UILineBreakModeWordWrap = 0,
   UILineBreakModeCharacterWrap,
   UILineBreakModeClip,
   UILineBreakModeHeadTruncation,
   UILineBreakModeTailTruncation,
   UILineBreakModeMiddleTruncation,
} UILineBreakMode;


   UILineBreakModeWordWrap = 0,
   以单词为单位换行,以单位为单位截断。
   UILineBreakModeCharacterWrap,
   以字符为单位换行,以字符为单位截断。
   UILineBreakModeClip,
   以单词为单位换行。以字符为单位截断。
   UILineBreakModeHeadTruncation,
   以单词为单位换行。如果是单行,则开始部分有省略号。如果是多行,则中间有省略号,省略号后面有4个字符。
   UILineBreakModeTailTruncation,
   以单词为单位换行。无论是单行还是多行,都是末尾有省略号。
   UILineBreakModeMiddleTruncation,
   以单词为单位换行。无论是单行还是多行,都是中间有省略号,省略号后面只有2个字符。
目录
相关文章
|
6月前
queryCoord的checkerController分析
queryCoord的checkerController分析
482 0
|
前端开发
R|timeROC-分析
R|timeROC-分析
214 0
R|timeROC-分析
|
弹性计算 运维 安全
全面分析和理解PBC
全面分析和理解PBC
5039 0
全面分析和理解PBC
|
SQL
【MySQLprofiling分析
【MySQLprofiling分析
85 0
【MySQLprofiling分析
|
定位技术 Android开发
BottomSheetBehavior分析
BottomSheetBehavior分析
BottomSheetBehavior分析
|
算法 数据安全/隐私保护