-(CGSize)checTheStringWithHight:(NSString *)theStr font:(float)font
{
CGFloat xxx;
if (SCREEN_WIDTH>320) {
xxx=15;
}else{
xxx=10;
}
CGSize sixx= [theStr boundingRectWithSize:CGSizeMake(SCREEN_WIDTH-xxx*2, MAXFLOAT) options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:font]} context:nil].size;
return sixx;
}
时间: 2024-11-07 23:22:06