如何让UILabel显示多行,并在结尾显示省略号
2015-06-24 10:42
495 查看
self.labelIntroduction.lineBreakMode =
NSLineBreakByWordWrapping | NSLineBreakByTruncatingTail;
self.labelIntroduction.numberOfLines =
0;//
self.labelIntroduction.textAlignment =
NSTextAlignmentCenter;
除了 Line (即:numberOfLines),还要把 Line Breaks 设置为:Truncate Tail
NSLineBreakByWordWrapping | NSLineBreakByTruncatingTail;
self.labelIntroduction.numberOfLines =
0;//
self.labelIntroduction.textAlignment =
NSTextAlignmentCenter;
除了 Line (即:numberOfLines),还要把 Line Breaks 设置为:Truncate Tail
相关文章推荐
- (转载)UIKIt力学教程
- Builder模式
- SQL Server 中master..spt_values的应用
- master.dbo.spt_values
- [Groovy]获取当前活动的Environment,获取response中节点的name和节点的value
- execute、executeQuery和executeUpdate之间的区别
- 【我们都爱Paul Hegarty】斯坦福IOS8公开课个人笔记35 UITextField文本框
- What components are not suitable to work as component interfaces
- Devexpress VCL Build v2015 vol 15.1.2发布
- UIModalPresentationStyle和UIModalTransitionStyle
- 用block将UIAlertView与UIActionSheet统一起来
- Android 使用正则表达式来快速生成多套dpi及分分辨率适配的UI
- UIControl
- 10 DelayQueue 延时队列类——Live555源码阅读(一)基本组件类
- UIButton 设置圆角 边框颜色 点击回调方法 &&图片在右文字在左
- 9 DelayQueueEntry 延时队列节点类——Live555源码阅读(一)基本组件类
- 【to be continue】五金配件,省得以后不认识
- iOS UI Label控件
- MSBuild 常用命令(Copy,Zip)
- UE4项目学习——2D跑酷游戏尝试(蓝图脚本)1