摘要: #import "TWO_ViewController.h"#define SCREEN_Width [[UIScreen mainScreen] bounds].size.width@interface TWO_ViewController ()@end@implementation TWO_ViewController- (void)viewDidLoad { [super view... 阅读全文
posted @ 2017-04-18 02:12 Levi.duan 阅读(160) 评论(0) 推荐(0) 编辑
摘要: 一、需求图如下所示UILabel 的高度自适应UILabel中的段落间距可设置图片效果如下:调整段落适应长宽高方式:需求:保证“游戏玩法” 章节,UILabel高度自适应,行内距为4px做法:UILabel实现自适应宽高(一)中说明了 UILabel 自适应的方法,但是如果加行间距,就要用到 NSMutableAttributedString 富文本的方式实现,来判断... 阅读全文
posted @ 2017-04-18 01:35 Levi.duan 阅读(277) 评论(0) 推荐(0) 编辑