diff options
author | matthew <matthew> | 2008-12-02 15:28:39 +0000 |
---|---|---|
committer | matthew <matthew> | 2008-12-02 15:28:39 +0000 |
commit | ab85d92dfb86387c2e054c32e387f4d940c69098 (patch) | |
tree | 32e0f94b2ad17cb6c95fa222b6f816aab5d2d1fe /iphone/FixMyStreet/Classes/InputTableViewController.m | |
parent | cfa458edaa2c599aec5deaa9f0104d8c71528554 (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.m | 5 |
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 |