Skip to content

Commit 79773b7

Browse files
committed
Add comment
1 parent e5184e5 commit 79773b7

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
@@ -66,7 +66,7 @@ - (void)viewDidLoad
6666
// Self-sizing table view cells in iOS 8 are enabled when the estimatedRowHeight property of the table view is set to a non-zero value.
6767
// Setting the estimated row height prevents the table view from calling tableView:heightForRowAtIndexPath: for every row in the table on first load;
6868
// it will only be called as cells are about to scroll onscreen. This is a major performance optimization.
69-
self.tableView.estimatedRowHeight = 44.0;
69+
self.tableView.estimatedRowHeight = 44.0; // set this to whatever your "average" cell height is; it doesn't need to be very accurate
7070
}
7171

7272
- (void)viewDidAppear:(BOOL)animated

0 commit comments

Comments
 (0)