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

Commit

Permalink
2.1.0 release
Browse files Browse the repository at this point in the history
  • Loading branch information
davdroman committed Jun 30, 2015
1 parent 7767101 commit 4180eb9
Show file tree
Hide file tree
Showing 9 changed files with 18 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 = "2.0.1"
s.version = "2.1.0"
s.summary = "Settings screen composing framework"
s.homepage = "https://github.com/DavdRoman/Bohr"
s.author = { "David Román" => "[email protected]" }
Expand Down
2 changes: 1 addition & 1 deletion Bohr/BOChoiceTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ - (NSString *)footerTitle {
return self.footerTitles[currentOption];
}

return nil;
return [super footerTitle];
}

- (void)wasSelectedFromViewController:(BOTableViewController *)viewController {
Expand Down
6 changes: 4 additions & 2 deletions Bohr/BOSwitchTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ - (void)updateAppearance {
}

- (NSString *)footerTitle {
BOOL settingValue = [self.setting.value boolValue];
if (self.onFooterTitle || self.offFooterTitle) {
return [self.setting.value boolValue] ? self.onFooterTitle : self.offFooterTitle;
}

return settingValue ? self.onFooterTitle : self.offFooterTitle;
return [super footerTitle];
}

- (void)toggleSwitchValueDidChange {
Expand Down
3 changes: 3 additions & 0 deletions Bohr/BOTableViewCell.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@
/// The color for the selected state of the cell.
@property (nonatomic, strong) IBInspectable UIColor *selectedColor;

/// The default footer title for the cell.
@property (nonatomic, strong) IBInspectable NSString *defaultFooterTitle;

@end
2 changes: 1 addition & 1 deletion Bohr/BOTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ - (void)setup {}
- (void)setupConstraints {}
- (void)updateAppearance {}
- (CGFloat)expansionHeight {return 0;}
- (NSString *)footerTitle {return nil;}
- (NSString *)footerTitle {return self.defaultFooterTitle;}
- (void)wasSelectedFromViewController:(BOTableViewController *)viewController {}
- (void)settingValueDidChange {}

Expand Down
2 changes: 1 addition & 1 deletion Bohr/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion BohrDemo/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>2.0.1</string>
<string>2.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
9 changes: 5 additions & 4 deletions BohrDemo/Main.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<objects>
<tableViewController id="8aG-sl-DjW" customClass="TableViewController" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="default" rowHeight="58" sectionHeaderHeight="10" sectionFooterHeight="10" id="09h-NJ-dhl">
<rect key="frame" x="0.0" y="0.0" width="600" height="566"/>
<rect key="frame" x="0.0" y="64" width="600" height="549"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="0.95999999999999996" alpha="1" colorSpace="calibratedWhite"/>
Expand Down Expand Up @@ -58,6 +58,7 @@
<animations/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="string" keyPath="key" value="bool_2"/>
<userDefinedRuntimeAttribute type="string" keyPath="defaultFooterTitle" value="Footer"/>
<userDefinedRuntimeAttribute type="string" keyPath="onFooterTitle" value="Switch setting 2 is on"/>
<userDefinedRuntimeAttribute type="string" keyPath="offFooterTitle" value="Switch setting 2 is off"/>
</userDefinedRuntimeAttributes>
Expand Down Expand Up @@ -185,7 +186,7 @@
</tableViewCell>
</cells>
</tableViewSection>
<tableViewSection headerTitle="Section 3" footerTitle="Static footer title" id="Icm-lX-mZf">
<tableViewSection headerTitle="Section 3" footerTitle="" id="Icm-lX-mZf">
<cells>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" textLabel="DQG-u9-VyJ" style="IBUITableViewCellStyleDefault" id="2FQ-3G-mgv" customClass="BOButtonTableViewCell">
<rect key="frame" x="0.0" y="79" width="600" height="44"/>
Expand Down Expand Up @@ -216,7 +217,7 @@
</tableView>
<navigationItem key="navigationItem" title="Bohr" id="2nX-kh-Bmg"/>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<size key="freeformSize" width="600" height="630"/>
<size key="freeformSize" width="600" height="613"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="footerTitlesColor">
<color key="value" white="0.0" alpha="0.29999999999999999" colorSpace="calibratedWhite"/>
Expand All @@ -241,7 +242,7 @@
<objects>
<tableViewController id="mPI-tq-cz0" customClass="BOTableViewController" sceneMemberID="viewController">
<tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="static" style="grouped" separatorStyle="default" rowHeight="58" sectionHeaderHeight="10" sectionFooterHeight="10" id="UYq-iK-MLW">
<rect key="frame" x="0.0" y="0.0" width="600" height="566"/>
<rect key="frame" x="0.0" y="64" width="600" height="549"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<animations/>
<color key="backgroundColor" white="0.95999999999999996" alpha="1" colorSpace="calibratedWhite"/>
Expand Down
1 change: 1 addition & 0 deletions BohrDemo/TableViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ - (void)setup {
self.choiceCell.options = @[@"Option 1", @"Option 2", @"Option 3"];
self.choiceDisclosureCell.options = @[@"Option 1", @"Option 2", @"Option 3", @"Option 4"];
[self.buttonCell setTarget:self action:@selector(showButtonAlert)];
self.buttonCell.defaultFooterTitle = @"Static footer set programatically";
}

- (void)presentAlertControllerWithTitle:(NSString *)title message:(NSString *)message {
Expand Down

0 comments on commit 4180eb9

Please sign in to comment.