UITableViewCell计算行高

http://www.cocoachina.com/bbs/simple/?t31769.html 

UITableViewCell *cell = [self tableView:tableView cellForRowAtIndexPath:indexPath];
    UILabel *tempLable=(UILabel *)[cell viewWithTag:1];
    UIImageView *tempImage=(UIImageView *)[cell viewWithTag:2];
    CGFloat lableHeight=tempLable.frame.size.height;
    CGFloat imageheight=tempImage.frame.size.height;
    if(lableHeight>imageheight)
        return lableHeight;
    else
        return imageheight;
原文地址:https://www.cnblogs.com/cc-Cheng/p/3372570.html