NSLineBreakByWordWrapping = 0, // Wrap at word boundaries, default 以空格爲邊界保留單詞app
NSLineBreakByCharWrapping, // Wrap at character boundaries 保留整個字符字體
NSLineBreakByClipping, // Simply clip 簡單截取,截去多餘部分spa
NSLineBreakByTruncatingHead, // Truncate at head of line: "...wxyz" 截去頭部blog
NSLineBreakByTruncatingTail, // Truncate at tail of line: "abcd..." 截去尾部ip
NSLineBreakByTruncatingMiddle 截去中間it
設置字體大小是否適應Label寬度io
label.adjustFontSizeToFitWidth = YES;class
設置高亮cli
label.highlighted = YESim
設置高亮顏色
label.highlghtedTextColor = [UIColor greenColor];
設置陰影顏色
label.shaowColor = [UIColor blackColor];
設置陰影偏移量
label.shaowOffSet = CGSizeMake(x, y);
設置可否和用戶進行交互
label.userInteractionEnabel = YES;
文字是否可變 默認YES
label.enabled = YES;
UIBaselineAdjustmentAlignBaselines 默認文本最上端與label中線對齊
UIBaselineAdjustmentAlignCenters text中間與label中線對齊
UIBaselineAdjustmentNone text底部與label中線對齊