#pragma mark - 根据一定高度/宽度返回宽度/高度
+ (CGSize)getStringSizeWith:(NSString *)goalString withStringFont:(CGFloat)font withWidthOrHeight:(CGFloat)fixedSize isWidthFixed:(BOOL)isWidth{
CGSize sizeC ;
if (isWidth) {
sizeC = CGSizeMake(fixedSize ,MAXFLOAT);
}else{
sizeC = CGSizeMake(MAXFLOAT ,fixedSize);
}
CGSize sizeFileName = [goalString boundingRectWithSize:sizeC
options:NSStringDrawingUsesLineFragmentOrigin
attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:font]}
context:nil].size;
return sizeFileName;
}