aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m
diff options
context:
space:
mode:
authormatthew <matthew>2008-10-23 13:22:54 +0000
committermatthew <matthew>2008-10-23 13:22:54 +0000
commit0b973dd816ed8e30b17833c20f7b9eea587f4371 (patch)
tree6669e190f10e427604de70bbdc3123197fea05b6 /iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m
parent4339b54a1d00fb35f0cfb8cd8aa38cf7a7bbc760 (diff)
Have blurb if click Report and name/email not yet set.
Diffstat (limited to 'iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m')
-rw-r--r--iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m18
1 files changed, 17 insertions, 1 deletions
diff --git a/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m b/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m
index 4491bb85e..ae6739e41 100644
--- a/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m
+++ b/iphone/FixMyStreet/Classes/FixMyStreetAppDelegate.m
@@ -97,6 +97,19 @@
// Report stuff
-(void)uploadReport {
// Not yet working - do something spinny here
+ [UIApplication sharedApplication].networkActivityIndicatorVisible = YES;
+// struct CGRect rect = [UIHardware fullScreenApplicationContentRect];
+// rect.origin.x = rect.origin.y = 0.0f;
+// UIWindow *window = [[UIWindow alloc] initWithContentRect: rect];
+// [window orderFront: self];
+// [window makeKey: self];
+// [window setContentView: imgView];
+//
+// id HUD = [[UIProgressHUD alloc] initWithWindow:window];
+// [HUD setText:@"Downloading now..."];
+// [HUD show:YES];
+
+
// UIActivityIndicatorView *spinny = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
// [spinny startAnimating];
// [spinny release];
@@ -168,7 +181,10 @@
NSData *returnData = [NSURLConnection sendSynchronousRequest:request returningResponse:nil error:nil];
NSString *returnString = [[NSString alloc] initWithData:returnData encoding:NSASCIIStringEncoding];
-
+
+ [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
+// [HUD show:NO];
+
// For now, just pop up alert box with return data
UIAlertView *v = [[UIAlertView alloc] initWithTitle:@"Return" message:returnString delegate:self cancelButtonTitle:@"OK" otherButtonTitles:nil];
[v show];