iOS根据文字计算高度

CGSize strSize = [str boundingRectWithSize:CGSizeMake(W, H) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:font]} context:nil].size;

posted @ 2017-03-13 14:41  飘金  阅读(4775)  评论(0编辑  收藏  举报