首页 > 技术文章 > iOS UITableView行高自行扩展

shidaying 2015-08-10 18:17 原文

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

不需要实现

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

{

    return <#expression#>

}

推荐阅读