aboutsummaryrefslogtreecommitdiffstats
path: root/iphone/FixMyStreet/Classes/InputTableViewController.m
diff options
context:
space:
mode:
authormatthew <matthew>2008-12-02 15:28:39 +0000
committermatthew <matthew>2008-12-02 15:28:39 +0000
commitab85d92dfb86387c2e054c32e387f4d940c69098 (patch)
tree32e0f94b2ad17cb6c95fa222b6f816aab5d2d1fe /iphone/FixMyStreet/Classes/InputTableViewController.m
parentcfa458edaa2c599aec5deaa9f0104d8c71528554 (diff)
Show nice alert error if no network when reporting problem, or if user denies location fetch
Diffstat (limited to 'iphone/FixMyStreet/Classes/InputTableViewController.m')
-rw-r--r--iphone/FixMyStreet/Classes/InputTableViewController.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/iphone/FixMyStreet/Classes/InputTableViewController.m b/iphone/FixMyStreet/Classes/InputTableViewController.m
index 0ac2b693b..3ad127c58 100644
--- a/iphone/FixMyStreet/Classes/InputTableViewController.m
+++ b/iphone/FixMyStreet/Classes/InputTableViewController.m
@@ -289,7 +289,10 @@
[self enableSubmissionButton];
}
--(void)newError:(NSString *)text {
+-(void)newLocationError:(NSString *)text {
+ UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Location required" message:text delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];
+ [alert show];
+ [alert release];
}
// Buttons