UILable 属性
text | 显示文字 | |
textColor | 文字颜色 | |
textAlignment | 文字位置 | UITextAlignmentLeft UITextAlignmentCenter UItextAlignmentRight |
BOOL adjustsFontSizeToFitWidth | 字体大小适应label宽度 | |
numberOfLines | 行数 | |
BOOL highlighted | 高亮 | |
highlightedTextColor | 高亮字体颜色 | |
shadowColor | 阴影颜色 | |
shadowOffset | 阴影偏移 | |
BOOL enabled | 文字是否可变(YES) | |
BOOL userInteractionEnabled | 是否可与用户交互 | |
lineBreakMode | 文字过长显示格式 | UILineBreakModeWordWrap = 0 UIlineBreakModeCharacterWrap UILineBreakModeClip 截去多余部分 UILineBreakModeHeadTruncation 截去头部 UILineBreakModeTailTruncation 截去尾部 UILineBreakModeMiddleTruncation 截去中间 |
baselineAdjustment |
UIBaselineAdjustmentAlignBaseLines
UIBaselineAdjustmentAlignCenters
UIBaselineAdjustmentNone
| |