iOS UITableView行高自行扩展

    myTableView.estimatedRowHeight = 44;
    myTableView.rowHeight = UITableViewAutomaticDimension;

不需要实现

- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath

{

    return <#expression#>

}

原文地址:https://www.cnblogs.com/shidaying/p/4718794.html