Skip to content

Commit 1ae779a

Browse files
Tyler FoxTyler Fox
authored andcommitted
Return UITableViewAutomaticDimension from the estimatedHeightForRowAtIndexPath method
1 parent a52afac commit 1ae779a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TableViewCellWithAutoLayout/TableViewController/RJTableViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(
213213
// See: https://github.com/caoimghgin/TableViewCellWithAutoLayout/issues/6
214214
return [self tableView:tableView heightForRowAtIndexPath:indexPath];
215215
} else {
216-
return 500.0f;
216+
return UITableViewAutomaticDimension;
217217
}
218218
}
219219

0 commit comments

Comments
 (0)