We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5184e5 commit 79773b7Copy full SHA for 79773b7
1 file changed
TableViewCellWithAutoLayout/TableViewController/RJTableViewController.m
@@ -66,7 +66,7 @@ - (void)viewDidLoad
66
// 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.
67
// Setting the estimated row height prevents the table view from calling tableView:heightForRowAtIndexPath: for every row in the table on first load;
68
// it will only be called as cells are about to scroll onscreen. This is a major performance optimization.
69
- self.tableView.estimatedRowHeight = 44.0;
+ self.tableView.estimatedRowHeight = 44.0; // set this to whatever your "average" cell height is; it doesn't need to be very accurate
70
}
71
72
- (void)viewDidAppear:(BOOL)animated
0 commit comments