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的高度;
自适应高度
最新推荐文章于 2023-04-12 10:09:10 发布