diff options
author | Eddie Ehlin <eddiex@eddiex.se> | 2013-03-07 19:45:23 +0100 |
---|---|---|
committer | Eddie Ehlin <eddiex@eddiex.se> | 2013-03-07 19:45:23 +0100 |
commit | 68ab69e08728458eff182a0f5c348e93700447ca (patch) | |
tree | b3600b898d83d2a171fe28f930f839372795cf1d | |
parent | bdfc47a541e47dce3e2f322b257baf40a8a0b659 (diff) | |
download | iBean-68ab69e08728458eff182a0f5c348e93700447ca.tar.gz iBean-68ab69e08728458eff182a0f5c348e93700447ca.zip |
Added an extra "add" button for creating Thresholds (making use of empty space).
-rw-r--r-- | iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate | bin | 53036 -> 52986 bytes | |||
-rw-r--r-- | iBean/iBean/ThresholdListViewController.m | 2 | ||||
-rw-r--r-- | iBean/iBean/iPhoneStoryboard.storyboard | 12 |
3 files changed, 10 insertions, 4 deletions
diff --git a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate Binary files differindex 8d9eb34..b3a73a4 100644 --- a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate +++ b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/iBean/iBean/ThresholdListViewController.m b/iBean/iBean/ThresholdListViewController.m index 1f96f6a..62f69ab 100644 --- a/iBean/iBean/ThresholdListViewController.m +++ b/iBean/iBean/ThresholdListViewController.m @@ -48,7 +48,7 @@ - (void) prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - if ([segue.identifier isEqualToString:@"ThresholdsAddNewThresholdSegue"]) + if ([segue.identifier isEqualToString:@"ThresholdsAddNewThresholdSegue"] || [segue.identifier isEqualToString:@"ThresholdsTopAddNewThresholdSegue"]) { ThresholdViewController* thresholdViewController = segue.destinationViewController; [thresholdViewController initWithConfigurationAndThresholdIndex:self.configuration : -1]; diff --git a/iBean/iBean/iPhoneStoryboard.storyboard b/iBean/iBean/iPhoneStoryboard.storyboard index d633fbf..fb822ce 100644 --- a/iBean/iBean/iPhoneStoryboard.storyboard +++ b/iBean/iBean/iPhoneStoryboard.storyboard @@ -418,7 +418,13 @@ <constraint firstItem="hI0-rM-L5l" firstAttribute="leading" secondItem="mrf-lS-W0h" secondAttribute="leading" type="default" id="tfj-11-6yn"/> </constraints> </view> - <navigationItem key="navigationItem" title="Thresholds" id="g7z-WC-gGh"/> + <navigationItem key="navigationItem" title="Thresholds" id="g7z-WC-gGh"> + <barButtonItem key="rightBarButtonItem" systemItem="add" id="O3t-a1-DKM"> + <connections> + <segue destination="0Fo-5M-9Kc" kind="push" identifier="ThresholdsTopAddNewThresholdSegue" id="FKb-Gk-Ub5"/> + </connections> + </barButtonItem> + </navigationItem> <connections> <outlet property="thresholdListBottomToolbar" destination="ixE-eI-jK9" id="ozU-hU-IYT"/> <outlet property="thresholdListEditButton" destination="pfh-Br-yHh" id="pK0-WR-tae"/> @@ -1439,8 +1445,8 @@ <simulatedScreenMetrics key="destination" type="retina4"/> </simulatedMetricsContainer> <inferredMetricsTieBreakers> - <segue reference="8Kh-dv-G2O"/> + <segue reference="FKb-Gk-Ub5"/> <segue reference="CyX-df-8ge"/> - <segue reference="qk2-F5-M1s"/> + <segue reference="8Kh-dv-G2O"/> </inferredMetricsTieBreakers> </document>
\ No newline at end of file |