自适应高度

来源:互联网 发布:贵金属趋势分析软件 编辑:程序博客网 时间:2024/06/10 04:40
 CGSize size = [Upload.uploadcontent  sizeWithFont:[UIFont systemFontOfSize:16.0f] constrainedToSize:CGSizeMake(290, 20000)];    CGFloat height = size.height;    if (height<30) //评论年内容的高度    {        height = 30;    }else{        height += 20;    }    // NSIndexPath *indexPath = [NSIndexPath indexPathForRow:indexPath.row inSection:0];//    if(indexPath.row==0||indexPath.row==1){//        height+=105;//    }//        height+=20; //加上“评论人”和“时间”Label的高度;
0 0
原创粉丝点击