From ff3656318c64f53e7171f6b18ccd6ece307029ec Mon Sep 17 00:00:00 2001 From: Eddie Ehlin Date: Tue, 19 Mar 2013 00:06:19 +0100 Subject: Updated instant extraction view (iPhone & iPad) with pressable display (instead of ugly button). --- .../UserInterfaceState.xcuserstate | Bin 58274 -> 58590 bytes iBean/iBean/InstantExtractionViewController.h | 2 +- iBean/iBean/InstantExtractionViewController.m | 4 +- iBean/iBean/iPadStoryboard.storyboard | 70 +++---- iBean/iBean/iPhoneStoryboard.storyboard | 207 +++------------------ 5 files changed, 71 insertions(+), 212 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 index 6173785..4fcc5fd 100644 Binary files a/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate and b/iBean/iBean.xcodeproj/project.xcworkspace/xcuserdata/eddiex.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/iBean/iBean/InstantExtractionViewController.h b/iBean/iBean/InstantExtractionViewController.h index 10b387a..c6a1c78 100644 --- a/iBean/iBean/InstantExtractionViewController.h +++ b/iBean/iBean/InstantExtractionViewController.h @@ -22,9 +22,9 @@ /* UI Outlets */ @property (weak, nonatomic) IBOutlet UILabel *extractionSettingLabel; -@property (weak, nonatomic) IBOutlet UIButton *extractionButton; @property (weak, nonatomic) IBOutlet UIStepper *extractionSettingStepper; @property (weak, nonatomic) IBOutlet UILabel *extractionProgressLabel; +@property (weak, nonatomic) IBOutlet UILabel *extractionStateLabel; /* UI Actions */ - (IBAction)startExtraction:(id)sender; diff --git a/iBean/iBean/InstantExtractionViewController.m b/iBean/iBean/InstantExtractionViewController.m index d489485..825d7ec 100644 --- a/iBean/iBean/InstantExtractionViewController.m +++ b/iBean/iBean/InstantExtractionViewController.m @@ -97,7 +97,7 @@ - (void) timerInterrupted { //Return UI to "Start extraction" state. - [self.extractionButton setTitle:@"Start extraction" forState:UIControlStateNormal]; + [self.extractionStateLabel setText:@"Press to start"]; [self.extractionSettingStepper setEnabled:YES]; self.extractionInProgress = NO; } @@ -111,7 +111,7 @@ if (([(AppDelegate*) [[UIApplication sharedApplication] delegate] getTimer] == nil) || self.extractionInProgress == NO) { self.extractionProgress = 0.0f; - [self.extractionButton setTitle:@"Stop extraction" forState:UIControlStateNormal]; + [self.extractionStateLabel setText:@"Press to stop"]; [self.extractionSettingStepper setEnabled:NO]; self.extractionInProgress = YES; diff --git a/iBean/iBean/iPadStoryboard.storyboard b/iBean/iBean/iPadStoryboard.storyboard index 884b2bd..43803d6 100644 --- a/iBean/iBean/iPadStoryboard.storyboard +++ b/iBean/iBean/iPadStoryboard.storyboard @@ -68,23 +68,12 @@ - - - + - - - + - - - - - + + + - - - - + + + + + - - - + + + - + @@ -1414,10 +1420,10 @@ - + diff --git a/iBean/iBean/iPhoneStoryboard.storyboard b/iBean/iBean/iPhoneStoryboard.storyboard index fb0db74..75a27b0 100644 --- a/iBean/iBean/iPhoneStoryboard.storyboard +++ b/iBean/iBean/iPhoneStoryboard.storyboard @@ -66,27 +66,12 @@ - + + - - + + + - - + + - - - + + + - + @@ -1303,162 +1304,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + \ No newline at end of file -- cgit v1.2.3