一、首先,写一个工具类(NSString的分类,增加两个功能,计算高度宽度) #import "NSString+Extension.h" @implementation NSString (Extension) 二、为了适配不同系统,字体字号作如下封装: 三、在需要计算字符串高度宽度的类中,做如下 Read More
posted @ 2016-05-27 11:25 偶阵雨ss33 Views(828) Comments(0) Diggs(0)