// CGFloat width1=[(NSString *)ob1 boundingRectWithSize:CGSizeMake(1000, FONTHEIGHT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:16]} context:nil].size.width;
//
//boundingRectWithSize: CGSize 对应 constrainedToSize: CGSize
//attributes:@{NSFontAttributeName: [ UIFont ] } 对应 sizeWithFont[ UIFont ]
//options: NSStringDrawingUsesLineFragmentOrigin 默认照填
//context: nil 默认照填
// - 返回一行的时候 str 的尺寸.
CGSize size = [str sizeWithAttributes:dic];
CGSize size = [@"sdfsf" sizeWithAttributes:@{ NSFontAttributeName : [UIFont systemFontOfSize:12]}];