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

Commit a30fc70

Browse files
committed
3.0.0-alpha.1 release
1 parent 4180eb9 commit a30fc70

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1002
-628
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 = "2.1.0"
3+
s.version = "3.0.0-alpha.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.xcodeproj/project.pbxproj

Lines changed: 50 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
754E568A1B1DFDB400075B6E /* BOSetting.m in Sources */ = {isa = PBXBuildFile; fileRef = 754E56881B1DFDB400075B6E /* BOSetting.m */; };
1313
754E568D1B1FC16700075B6E /* BOSwitchTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 754E568B1B1FC16700075B6E /* BOSwitchTableViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
1414
754E568E1B1FC16700075B6E /* BOSwitchTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 754E568C1B1FC16700075B6E /* BOSwitchTableViewCell.m */; };
15-
7599AF461B2B29E000B253CD /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 7599AF451B2B29E000B253CD /* Main.storyboard */; };
1615
759E1B001B2BC31700AD8F38 /* BOTimeTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 754E56931B2083DE00075B6E /* BOTimeTableViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
1716
759E1B011B2BC31700AD8F38 /* BOTimeTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 754E56941B2083DE00075B6E /* BOTimeTableViewCell.m */; };
1817
75B6CE1C1B3756D800DADCBD /* BOOptionTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 75B6CE1A1B3756D800DADCBD /* BOOptionTableViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -35,6 +34,15 @@
3534
75E19B451B2BC76100C03FF6 /* BOChoiceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 754E56A31B20D2FE00075B6E /* BOChoiceTableViewCell.m */; };
3635
75E19B461B2BCCFE00C03FF6 /* BOTextTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 75E02FE11B21F72C009698D3 /* BOTextTableViewCell.h */; settings = {ATTRIBUTES = (Public, ); }; };
3736
75E19B471B2BCCFE00C03FF6 /* BOTextTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 75E02FE21B21F72C009698D3 /* BOTextTableViewCell.m */; };
37+
D5CF66461B8DFAC800FC5F13 /* BOTableViewSection.h in Headers */ = {isa = PBXBuildFile; fileRef = D5CF66441B8DFAC800FC5F13 /* BOTableViewSection.h */; settings = {ATTRIBUTES = (Public, ); }; };
38+
D5CF66471B8DFAC800FC5F13 /* BOTableViewSection.m in Sources */ = {isa = PBXBuildFile; fileRef = D5CF66451B8DFAC800FC5F13 /* BOTableViewSection.m */; };
39+
D5CF664C1B8DFF4700FC5F13 /* MZAppearance.h in Headers */ = {isa = PBXBuildFile; fileRef = D5CF66481B8DFF4700FC5F13 /* MZAppearance.h */; settings = {ATTRIBUTES = (Public, ); }; };
40+
D5CF664D1B8DFF4700FC5F13 /* MZAppearance.m in Sources */ = {isa = PBXBuildFile; fileRef = D5CF66491B8DFF4700FC5F13 /* MZAppearance.m */; };
41+
D5CF664E1B8DFF4700FC5F13 /* NSInvocation+Copy.h in Headers */ = {isa = PBXBuildFile; fileRef = D5CF664A1B8DFF4700FC5F13 /* NSInvocation+Copy.h */; };
42+
D5CF664F1B8DFF4700FC5F13 /* NSInvocation+Copy.m in Sources */ = {isa = PBXBuildFile; fileRef = D5CF664B1B8DFF4700FC5F13 /* NSInvocation+Copy.m */; };
43+
D5CF66521B8E491A00FC5F13 /* UIColor+Bohr.m in Sources */ = {isa = PBXBuildFile; fileRef = D5CF66511B8E491A00FC5F13 /* UIColor+Bohr.m */; };
44+
D5D00B6E1B8FD14500ADCAB2 /* OptionsTableViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = D5D00B6D1B8FD14500ADCAB2 /* OptionsTableViewController.m */; };
45+
D5D00B721B8FE63E00ADCAB2 /* BOTableViewCell+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = D5D00B711B8FE63E00ADCAB2 /* BOTableViewCell+Private.h */; };
3846
D5F1D8A91B3A1EF1004DA018 /* BOTableViewController+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = D5F1D8A81B3A1EF1004DA018 /* BOTableViewController+Private.h */; };
3947
D5F1D8AB1B3A210E004DA018 /* BOSetting+Private.h in Headers */ = {isa = PBXBuildFile; fileRef = D5F1D8AA1B3A210E004DA018 /* BOSetting+Private.h */; };
4048
/* End PBXBuildFile section */
@@ -75,7 +83,6 @@
7583
754E56981B20C9D400075B6E /* BOButtonTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOButtonTableViewCell.m; sourceTree = "<group>"; };
7684
754E56A21B20D2FE00075B6E /* BOChoiceTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BOChoiceTableViewCell.h; sourceTree = "<group>"; };
7785
754E56A31B20D2FE00075B6E /* BOChoiceTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOChoiceTableViewCell.m; sourceTree = "<group>"; };
78-
7599AF451B2B29E000B253CD /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = Main.storyboard; sourceTree = "<group>"; };
7986
75B6CE1A1B3756D800DADCBD /* BOOptionTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BOOptionTableViewCell.h; sourceTree = "<group>"; };
8087
75B6CE1B1B3756D800DADCBD /* BOOptionTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOOptionTableViewCell.m; sourceTree = "<group>"; };
8188
75C7ADD31B1AB3010050C8AA /* BohrDemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = BohrDemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -96,6 +103,17 @@
96103
75C7AE261B1AB42A0050C8AA /* BOTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOTableViewCell.m; sourceTree = "<group>"; };
97104
75E02FE11B21F72C009698D3 /* BOTextTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BOTextTableViewCell.h; sourceTree = "<group>"; };
98105
75E02FE21B21F72C009698D3 /* BOTextTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOTextTableViewCell.m; sourceTree = "<group>"; };
106+
D5CF66441B8DFAC800FC5F13 /* BOTableViewSection.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BOTableViewSection.h; sourceTree = "<group>"; };
107+
D5CF66451B8DFAC800FC5F13 /* BOTableViewSection.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BOTableViewSection.m; sourceTree = "<group>"; };
108+
D5CF66481B8DFF4700FC5F13 /* MZAppearance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MZAppearance.h; sourceTree = "<group>"; };
109+
D5CF66491B8DFF4700FC5F13 /* MZAppearance.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MZAppearance.m; sourceTree = "<group>"; };
110+
D5CF664A1B8DFF4700FC5F13 /* NSInvocation+Copy.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSInvocation+Copy.h"; sourceTree = "<group>"; };
111+
D5CF664B1B8DFF4700FC5F13 /* NSInvocation+Copy.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSInvocation+Copy.m"; sourceTree = "<group>"; };
112+
D5CF66501B8E491A00FC5F13 /* UIColor+Bohr.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+Bohr.h"; sourceTree = "<group>"; };
113+
D5CF66511B8E491A00FC5F13 /* UIColor+Bohr.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+Bohr.m"; sourceTree = "<group>"; };
114+
D5D00B6C1B8FD14500ADCAB2 /* OptionsTableViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OptionsTableViewController.h; sourceTree = "<group>"; };
115+
D5D00B6D1B8FD14500ADCAB2 /* OptionsTableViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OptionsTableViewController.m; sourceTree = "<group>"; };
116+
D5D00B711B8FE63E00ADCAB2 /* BOTableViewCell+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "BOTableViewCell+Private.h"; sourceTree = "<group>"; };
99117
D5F1D8A81B3A1EF1004DA018 /* BOTableViewController+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "BOTableViewController+Private.h"; sourceTree = "<group>"; };
100118
D5F1D8AA1B3A210E004DA018 /* BOSetting+Private.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "BOSetting+Private.h"; sourceTree = "<group>"; };
101119
/* End PBXFileReference section */
@@ -142,9 +160,12 @@
142160
children = (
143161
75C7ADDA1B1AB3010050C8AA /* AppDelegate.h */,
144162
75C7ADDB1B1AB3010050C8AA /* AppDelegate.m */,
145-
7599AF451B2B29E000B253CD /* Main.storyboard */,
163+
D5CF66501B8E491A00FC5F13 /* UIColor+Bohr.h */,
164+
D5CF66511B8E491A00FC5F13 /* UIColor+Bohr.m */,
146165
75C7ADDD1B1AB3010050C8AA /* TableViewController.h */,
147166
75C7ADDE1B1AB3010050C8AA /* TableViewController.m */,
167+
D5D00B6C1B8FD14500ADCAB2 /* OptionsTableViewController.h */,
168+
D5D00B6D1B8FD14500ADCAB2 /* OptionsTableViewController.m */,
148169
75C7ADD61B1AB3010050C8AA /* Supporting Files */,
149170
);
150171
path = BohrDemo;
@@ -168,8 +189,11 @@
168189
75C7AE1F1B1AB3480050C8AA /* BOTableViewController.h */,
169190
75C7AE201B1AB3480050C8AA /* BOTableViewController.m */,
170191
D5F1D8A81B3A1EF1004DA018 /* BOTableViewController+Private.h */,
192+
D5CF66441B8DFAC800FC5F13 /* BOTableViewSection.h */,
193+
D5CF66451B8DFAC800FC5F13 /* BOTableViewSection.m */,
171194
75C7AE251B1AB42A0050C8AA /* BOTableViewCell.h */,
172195
75C7AE261B1AB42A0050C8AA /* BOTableViewCell.m */,
196+
D5D00B711B8FE63E00ADCAB2 /* BOTableViewCell+Private.h */,
173197
754E564F1B1B461700075B6E /* BOTableViewCell+Subclass.h */,
174198
754E568B1B1FC16700075B6E /* BOSwitchTableViewCell.h */,
175199
754E568C1B1FC16700075B6E /* BOSwitchTableViewCell.m */,
@@ -186,6 +210,10 @@
186210
754E56871B1DFDB400075B6E /* BOSetting.h */,
187211
754E56881B1DFDB400075B6E /* BOSetting.m */,
188212
D5F1D8AA1B3A210E004DA018 /* BOSetting+Private.h */,
213+
D5CF66481B8DFF4700FC5F13 /* MZAppearance.h */,
214+
D5CF66491B8DFF4700FC5F13 /* MZAppearance.m */,
215+
D5CF664A1B8DFF4700FC5F13 /* NSInvocation+Copy.h */,
216+
D5CF664B1B8DFF4700FC5F13 /* NSInvocation+Copy.m */,
189217
75C7AE011B1AB3280050C8AA /* Supporting Files */,
190218
);
191219
path = Bohr;
@@ -213,7 +241,11 @@
213241
75C7AE211B1AB3480050C8AA /* BOTableViewController.h in Headers */,
214242
75E19B441B2BC76100C03FF6 /* BOChoiceTableViewCell.h in Headers */,
215243
754E56891B1DFDB400075B6E /* BOSetting.h in Headers */,
244+
D5CF66461B8DFAC800FC5F13 /* BOTableViewSection.h in Headers */,
245+
D5CF664C1B8DFF4700FC5F13 /* MZAppearance.h in Headers */,
216246
754E568D1B1FC16700075B6E /* BOSwitchTableViewCell.h in Headers */,
247+
D5D00B721B8FE63E00ADCAB2 /* BOTableViewCell+Private.h in Headers */,
248+
D5CF664E1B8DFF4700FC5F13 /* NSInvocation+Copy.h in Headers */,
217249
75B6CE1C1B3756D800DADCBD /* BOOptionTableViewCell.h in Headers */,
218250
75C7AE291B1AB42A0050C8AA /* BOTableViewCell.h in Headers */,
219251
759E1B001B2BC31700AD8F38 /* BOTimeTableViewCell.h in Headers */,
@@ -268,15 +300,15 @@
268300
75C7ADC91B1AB2F80050C8AA /* Project object */ = {
269301
isa = PBXProject;
270302
attributes = {
271-
LastUpgradeCheck = 0630;
303+
LastUpgradeCheck = 0640;
272304
TargetAttributes = {
273305
75C7ADD21B1AB3010050C8AA = {
274306
CreatedOnToolsVersion = 6.3.2;
275-
DevelopmentTeam = 928NVD8D9L;
307+
DevelopmentTeam = 26CPNYHDUU;
276308
};
277309
75C7ADFE1B1AB3280050C8AA = {
278310
CreatedOnToolsVersion = 6.3.2;
279-
DevelopmentTeam = 928NVD8D9L;
311+
DevelopmentTeam = 26CPNYHDUU;
280312
};
281313
};
282314
};
@@ -304,7 +336,6 @@
304336
isa = PBXResourcesBuildPhase;
305337
buildActionMask = 2147483647;
306338
files = (
307-
7599AF461B2B29E000B253CD /* Main.storyboard in Resources */,
308339
75C7ADE71B1AB3010050C8AA /* LaunchScreen.xib in Resources */,
309340
75C7ADE41B1AB3010050C8AA /* Images.xcassets in Resources */,
310341
);
@@ -324,9 +355,11 @@
324355
isa = PBXSourcesBuildPhase;
325356
buildActionMask = 2147483647;
326357
files = (
358+
D5CF66521B8E491A00FC5F13 /* UIColor+Bohr.m in Sources */,
327359
75C7ADDF1B1AB3010050C8AA /* TableViewController.m in Sources */,
328360
75C7ADDC1B1AB3010050C8AA /* AppDelegate.m in Sources */,
329361
75C7ADD91B1AB3010050C8AA /* main.m in Sources */,
362+
D5D00B6E1B8FD14500ADCAB2 /* OptionsTableViewController.m in Sources */,
330363
);
331364
runOnlyForDeploymentPostprocessing = 0;
332365
};
@@ -338,11 +371,14 @@
338371
75C7AE221B1AB3480050C8AA /* BOTableViewController.m in Sources */,
339372
754E568A1B1DFDB400075B6E /* BOSetting.m in Sources */,
340373
75B6CE1F1B375DCA00DADCBD /* BOButtonTableViewCell.m in Sources */,
374+
D5CF66471B8DFAC800FC5F13 /* BOTableViewSection.m in Sources */,
341375
754E568E1B1FC16700075B6E /* BOSwitchTableViewCell.m in Sources */,
342376
759E1B011B2BC31700AD8F38 /* BOTimeTableViewCell.m in Sources */,
377+
D5CF664D1B8DFF4700FC5F13 /* MZAppearance.m in Sources */,
343378
75B6CE1D1B3756D800DADCBD /* BOOptionTableViewCell.m in Sources */,
344379
75E19B471B2BCCFE00C03FF6 /* BOTextTableViewCell.m in Sources */,
345380
75E19B451B2BC76100C03FF6 /* BOChoiceTableViewCell.m in Sources */,
381+
D5CF664F1B8DFF4700FC5F13 /* NSInvocation+Copy.m in Sources */,
346382
);
347383
runOnlyForDeploymentPostprocessing = 0;
348384
};
@@ -371,12 +407,15 @@
371407
75C7ADCD1B1AB2F80050C8AA /* Debug */ = {
372408
isa = XCBuildConfiguration;
373409
buildSettings = {
410+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
411+
ONLY_ACTIVE_ARCH = YES;
374412
};
375413
name = Debug;
376414
};
377415
75C7ADCE1B1AB2F80050C8AA /* Release */ = {
378416
isa = XCBuildConfiguration;
379417
buildSettings = {
418+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
380419
};
381420
name = Release;
382421
};
@@ -419,7 +458,7 @@
419458
GCC_WARN_UNUSED_FUNCTION = YES;
420459
GCC_WARN_UNUSED_VARIABLE = YES;
421460
INFOPLIST_FILE = BohrDemo/Info.plist;
422-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
461+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
423462
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
424463
MTL_ENABLE_DEBUG_INFO = YES;
425464
ONLY_ACTIVE_ARCH = YES;
@@ -463,7 +502,7 @@
463502
GCC_WARN_UNUSED_FUNCTION = YES;
464503
GCC_WARN_UNUSED_VARIABLE = YES;
465504
INFOPLIST_FILE = BohrDemo/Info.plist;
466-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
505+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
467506
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
468507
MTL_ENABLE_DEBUG_INFO = NO;
469508
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -518,7 +557,7 @@
518557
GCC_WARN_UNUSED_VARIABLE = YES;
519558
INFOPLIST_FILE = Bohr/Info.plist;
520559
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
521-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
560+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
522561
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
523562
MTL_ENABLE_DEBUG_INFO = YES;
524563
ONLY_ACTIVE_ARCH = YES;
@@ -570,7 +609,7 @@
570609
GCC_WARN_UNUSED_VARIABLE = YES;
571610
INFOPLIST_FILE = Bohr/Info.plist;
572611
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
573-
IPHONEOS_DEPLOYMENT_TARGET = 8.3;
612+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
574613
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
575614
MTL_ENABLE_DEBUG_INFO = NO;
576615
PRODUCT_NAME = "$(TARGET_NAME)";

Bohr.xcodeproj/xcshareddata/xcschemes/Bohr.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "0630"
3+
LastUpgradeVersion = "0640"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

Bohr/BOButtonTableViewCell.h

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@
1010

1111
@interface BOButtonTableViewCell : BOTableViewCell
1212

13-
/// The target of the cell action.
14-
@property (nonatomic) id target;
15-
16-
/// The action defined by the cell, triggered when it's tapped.
17-
@property (nonatomic) SEL action;
18-
19-
/// Sets both the target and action for the cell to be performed.
20-
- (void)setTarget:(id)target action:(SEL)action;
13+
/// A block defining the cell action when it's pressed.
14+
@property (nonatomic, copy) void (^actionBlock)(void);
2115

2216
@end

Bohr/BOButtonTableViewCell.m

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,8 @@ - (void)setup {
1717
self.textLabel.textAlignment = NSTextAlignmentCenter;
1818
}
1919

20-
#pragma clang diagnostic ignored "-Warc-performSelector-leaks"
21-
2220
- (void)wasSelectedFromViewController:(BOTableViewController *)viewController {
23-
if ([self.target respondsToSelector:self.action]) {
24-
[self.target performSelector:self.action];
25-
}
26-
}
27-
28-
- (void)setTarget:(id)target action:(SEL)action {
29-
self.target = target;
30-
self.action = action;
21+
if (self.actionBlock) self.actionBlock();
3122
}
3223

3324
@end

Bohr/BOChoiceTableViewCell.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010

1111
@interface BOChoiceTableViewCell : BOTableViewCell
1212

13-
/// An array defining (in short) all the options availables on the cell.
14-
@property (nonatomic, strong) NSArray *options;
13+
/// An array defining all the options available for the cell.
14+
@property (nonatomic) NSArray *options;
1515

1616
/// An array defining all the footer titles for each option assigned to the cell.
17-
@property (nonatomic, strong) IBInspectable NSArray *footerTitles;
17+
@property (nonatomic) NSArray *footerTitles;
1818

1919
@end

Bohr/BOChoiceTableViewCell.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ - (NSString *)footerTitle {
2323
return self.footerTitles[currentOption];
2424
}
2525

26-
return [super footerTitle];
26+
return nil;
2727
}
2828

2929
- (void)wasSelectedFromViewController:(BOTableViewController *)viewController {

Bohr/BOOptionTableViewCell.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
@interface BOOptionTableViewCell : BOTableViewCell
1212

1313
/// The string for the footer title when the cell has a checkmark on it.
14-
@property (nonatomic, strong) IBInspectable NSString *footerTitle;
14+
@property (nonatomic) NSString *footerTitle;
1515

1616
@end

Bohr/BOOptionTableViewCell.m

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,12 @@ - (void)setup {
1717
}
1818

1919
- (void)wasSelectedFromViewController:(BOTableViewController *)viewController {
20-
NSInteger optionIndex = [viewController.tableView indexPathForCell:self].row;
21-
self.setting.value = @(optionIndex);
20+
self.setting.value = @(self.indexPath.row);
2221
}
2322

2423
- (void)settingValueDidChange {
2524
NSInteger optionIndex = [self.setting.value integerValue];
26-
27-
if (optionIndex == self.indexPath.row) {
28-
self.accessoryType = UITableViewCellAccessoryCheckmark;
29-
} else {
30-
self.accessoryType = UITableViewCellAccessoryNone;
31-
}
25+
self.accessoryType = (optionIndex == self.indexPath.row) ? UITableViewCellAccessoryCheckmark : UITableViewCellAccessoryNone;
3226
}
3327

3428
@end

Bohr/BOSetting+Private.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@
1010

1111
@interface BOSetting ()
1212

13-
typedef void(^BOSettingValueDidChangeBlock)(void);
14-
15-
@property (nonatomic, copy) BOSettingValueDidChangeBlock valueDidChangeBlock;
13+
@property (nonatomic, copy) void(^valueDidChangeBlock)(void);
1614

1715
@end

0 commit comments

Comments
 (0)