Skip to content
This repository has been archived by the owner on Aug 24, 2020. It is now read-only.

Commit

Permalink
3.0.0-rc.1 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davdroman committed Sep 4, 2015
1 parent eb49174 commit 9f8136c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
2 changes: 1 addition & 1 deletion Bohr.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Bohr"
s.version = "3.0.0-alpha.5"
s.version = "3.0.0-rc.1"
s.summary = "Settings screen composing framework"
s.homepage = "https://github.com/DavdRoman/Bohr"
s.author = { "David Román" => "d@vidroman.me" }
Expand Down
21 changes: 11 additions & 10 deletions Bohr/BOTableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,18 +111,19 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
return cellHeight;
}

- (CGFloat)heightForCell:(UITableViewCell *)cell {
- (CGFloat)heightForCell:(BOTableViewCell *)cell {

UITableViewCell *cleanCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
cleanCell.frame = CGRectMake(0, 0, cell.frame.size.width, 0);
cleanCell.textLabel.numberOfLines = 0;
cleanCell.textLabel.text = cell.textLabel.text;
cleanCell.accessoryView = cell.accessoryView;
cleanCell.accessoryType = cell.accessoryType;

CGFloat height = [cleanCell systemLayoutSizeFittingSize:cleanCell.frame.size].height;
if ([cell expansionHeight] > 0) {
UITableViewCell *cleanCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
cleanCell.frame = CGRectMake(0, 0, cell.frame.size.width, 0);
cleanCell.textLabel.numberOfLines = 0;
cleanCell.textLabel.text = cell.textLabel.text;
cleanCell.accessoryView = cell.accessoryView;
cleanCell.accessoryType = cell.accessoryType;
return [cleanCell systemLayoutSizeFittingSize:cleanCell.frame.size].height;
}

return height;
return [cell systemLayoutSizeFittingSize:cell.frame.size].height;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
Expand Down

0 comments on commit 9f8136c

Please sign in to comment.