Skip to content

Commit

Permalink
added hud to deliveryVC on doconfirm
Browse files Browse the repository at this point in the history
  • Loading branch information
josephlausf committed Jan 23, 2016
1 parent 8f78e0c commit 4231536
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@
moduleName = "Bento Dev"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/JosephLauSF/_github/Bento/Bento/ViewController/SignIn/SignInViewController.m"
timestampString = "475248952.943917"
timestampString = "475251207.511384"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "449"
Expand All @@ -157,7 +157,7 @@
moduleName = "Bento Dev"
usesParentBreakpointCondition = "Yes"
urlString = "file:///Users/JosephLauSF/_github/Bento/Bento/ViewController/SignIn/SignInViewController.m"
timestampString = "475248952.945841"
timestampString = "475251207.511548"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "449"
Expand Down Expand Up @@ -334,11 +334,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bento/ViewController/DeliveryLocation/DeliveryLocationViewController.m"
timestampString = "475199952.440044"
timestampString = "475251206.426993"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "863"
endingLineNumber = "863">
startingLineNumber = "862"
endingLineNumber = "862">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
Expand Down Expand Up @@ -549,5 +549,21 @@
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "Bento/ViewController/DeliveryLocation/DeliveryLocationViewController.m"
timestampString = "475251234.924914"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "466"
endingLineNumber = "466"
landmarkName = "-onBottomButton:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,16 @@ - (void)doConfirmOrder
[self.navigationController popViewControllerAnimated:YES];
}
else {
if (loadingHUD == nil) {
loadingHUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
[loadingHUD showInView:self.view];
}

[[BentoShop sharedInstance] checkIfSelectedLocationIsInAnyZone:self.placeInfo.location.coordinate completion:^(BOOL isSelectedLocationInZone, NSString *appState) {

[loadingHUD dismiss];
loadingHUD = nil;

if (isSelectedLocationInZone == YES && [appState isEqualToString:@"build"]) {
[[NSUserDefaults standardUserDefaults] rm_setCustomObject:self.placeInfo forKey:@"delivery_location"];
[[NSUserDefaults standardUserDefaults] synchronize];
Expand Down

0 comments on commit 4231536

Please sign in to comment.