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;

 

}

posted @ 2016-08-09 14:42  zhen_zhen  阅读(143)  评论(0编辑  收藏  举报