iOS--UIKit

2016-07-01  本文已影响29人  superKelly

UILabel

UITextField

UITextView

1、
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 tail of line: "abcd..."
NSLineBreakByTruncatingMiddle // Truncate middle of line: "ab...yz"
} NS_ENUM_AVAILABLE(10_0, 6_0);
NSLineBreakByWordWrapping = 0,//以空格为边界,保留单词NSLineBreakByCharWrapping, //保留整个字符NSLineBreakByClipping, //简单剪裁,到边界为止NSLineBreakByTruncatingHead, //按照"……文字"显示NSLineBreakByTruncatingTail, //按照"文字……文字"显示NSLineBreakByTruncatingMiddle //按照"文字……"显示

2、contentVerticalAlignment
UIControl的属性

上一篇 下一篇

猜你喜欢

热点阅读