标签:
CGSize size = [xxx sizeWithAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:14.0f]}]; CGSize adjustedSize = CGSizeMake(ceilf(size.width), ceilf(size.height));
iOS 根据字体设置size
原文地址:http://www.cnblogs.com/tongyuling/p/4834796.html