@@ -100,8 +100,8 @@ - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger
100100- (CGFloat)tableView : (UITableView *)tableView heightForRowAtIndexPath : (NSIndexPath *)indexPath {
101101 BOTableViewSection *section = self.sections [indexPath.section];
102102 BOTableViewCell *cell = section.cells [indexPath.row];
103- CGFloat cellHeight = [cell systemLayoutSizeFittingSize: CGSizeMake (cell.contentView.frame.size.width, UITableViewAutomaticDimension)].height ;
104-
103+ CGFloat cellHeight = [cell.contentView systemLayoutSizeFittingSize: CGSizeMake (cell.contentView.frame.size.width, UITableViewAutomaticDimension)].height ;
104+
105105 if (cellHeight < self.tableView .estimatedRowHeight ) {
106106 cellHeight = self.tableView .estimatedRowHeight ;
107107 } else {
@@ -121,15 +121,14 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
121121 BOTableViewSection *section = self.sections [indexPath.section];
122122 BOTableViewCell *cell = section.cells [indexPath.row];
123123 cell.indexPath = indexPath;
124- [cell prepareForReuse ];
125124
126125 if (cell.setting && !cell.setting .valueDidChangeBlock ) {
127126 [UIView performWithoutAnimation: ^{
128127 __unsafe_unretained typeof (self) weakSelf = self;
129128 __unsafe_unretained typeof (cell) weakCell = cell;
130129 cell.setting .valueDidChangeBlock = ^{
131- [weakSelf reloadTableView ];
132130 [weakCell settingValueDidChange ];
131+ [weakSelf reloadTableView ];
133132 };
134133 }];
135134 }
@@ -205,7 +204,7 @@ - (NSString *)tableView:(UITableView *)tableView titleForFooterInSection:(NSInte
205204 // Finally, we try to find an existing footer in any cell that has a checkmark accessory on it (this is the top priority for dynamic footers).
206205 for (BOTableViewCell *cell in section.cells ) {
207206 if (cell.accessoryType == UITableViewCellAccessoryCheckmark) {
208- footerTitle = [ cell footerTitle ] ;
207+ footerTitle = cell. footerTitle ;
209208 }
210209 }
211210
0 commit comments