myTableView.estimatedRowHeight = 44; myTableView.rowHeight = UITableViewAutomaticDimension;
不需要实现
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
return <#expression#>
}
原文:http://www.cnblogs.com/shidaying/p/4718794.html