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