iOS 根据字体设置size

CGSize size = [xxx sizeWithAttributes:@{NSFontAttributeName: [UIFont systemFontOfSize:14.0f]}];
CGSize adjustedSize = CGSizeMake(ceilf(size.width), ceilf(size.height));
posted @ 2015-09-24 11:36  tongyuling  阅读(191)  评论(0编辑  收藏  举报