知识片段---label行间距设置
2016-01-26 14:07
260 查看
//设置行间距
NSMutableParagraphStyle
*paragraphStyle = [[NSMutableParagraphStyle
alloc]init];
paragraphStyle.lineSpacing
= 8;
NSDictionary
*attributes = @{
NSFontAttributeName:[UIFont
systemFontOfSize:14],
NSParagraphStyleAttributeName:paragraphStyle};
self.describe.attributedText
= [[NSAttributedString
alloc]initWithString:homePageModel.des
attributes:attributes];
NSMutableParagraphStyle
*paragraphStyle = [[NSMutableParagraphStyle
alloc]init];
paragraphStyle.lineSpacing
= 8;
NSDictionary
*attributes = @{
NSFontAttributeName:[UIFont
systemFontOfSize:14],
NSParagraphStyleAttributeName:paragraphStyle};
self.describe.attributedText
= [[NSAttributedString
alloc]initWithString:homePageModel.des
attributes:attributes];
相关文章推荐
- mssql的"[]" 标识符的问题
- DrawerLayout的基本用法
- C语言的优点和缺点
- MongoDB--Getting Started with Java Driver
- SSH 框架笔记
- 知识片段---webView计算内容高度
- IPC机制---03 IPC基础概念介绍
- epoll模型和使用详解(精髓)epoll - I/O event notification facility
- 浅析非事实型事实表
- html定位总结
- 【转】Linux下的多线程编程
- MySQL中优化常用的查询sql语
- 匈牙利算法模板
- 平衡二叉树
- JAVA 数组转字符串,用符号分割
- Linux中表示“时间”的结构体和相关函数
- MVC表单提交加JS验证
- ubuntu14.04 server 安装docker
- iPhone开发 – 小技巧二则 (UIColor 16进制颜色 | UIview设置frame)
- 大数据安全:Hadoop安全模型的演进