height cell0809

-(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, MAXFLOAToptions:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName:[UIFont systemFontOfSize:font]} context:nil].size;

    return  sixx;

 

}

原文地址:https://www.cnblogs.com/gzz2016/p/5753173.html