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

Commit 9f8136c

Browse files
committed
3.0.0-rc.1 release
1 parent eb49174 commit 9f8136c

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

Bohr.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Bohr"
3-
s.version = "3.0.0-alpha.5"
3+
s.version = "3.0.0-rc.1"
44
s.summary = "Settings screen composing framework"
55
s.homepage = "https://github.com/DavdRoman/Bohr"
66
s.author = { "David Román" => "[email protected]" }

Bohr/BOTableViewController.m

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -111,18 +111,19 @@ - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPa
111111
return cellHeight;
112112
}
113113

114-
- (CGFloat)heightForCell:(UITableViewCell *)cell {
114+
- (CGFloat)heightForCell:(BOTableViewCell *)cell {
115115

116-
UITableViewCell *cleanCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
117-
cleanCell.frame = CGRectMake(0, 0, cell.frame.size.width, 0);
118-
cleanCell.textLabel.numberOfLines = 0;
119-
cleanCell.textLabel.text = cell.textLabel.text;
120-
cleanCell.accessoryView = cell.accessoryView;
121-
cleanCell.accessoryType = cell.accessoryType;
122-
123-
CGFloat height = [cleanCell systemLayoutSizeFittingSize:cleanCell.frame.size].height;
116+
if ([cell expansionHeight] > 0) {
117+
UITableViewCell *cleanCell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:nil];
118+
cleanCell.frame = CGRectMake(0, 0, cell.frame.size.width, 0);
119+
cleanCell.textLabel.numberOfLines = 0;
120+
cleanCell.textLabel.text = cell.textLabel.text;
121+
cleanCell.accessoryView = cell.accessoryView;
122+
cleanCell.accessoryType = cell.accessoryType;
123+
return [cleanCell systemLayoutSizeFittingSize:cleanCell.frame.size].height;
124+
}
124125

125-
return height;
126+
return [cell systemLayoutSizeFittingSize:cell.frame.size].height;
126127
}
127128

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

0 commit comments

Comments
 (0)