Display status messages for failed app launch

This commit is contained in:
Cameron Gutman
2014-10-23 23:41:07 -04:00
parent 47850cd658
commit 3554b40962
5 changed files with 42 additions and 10 deletions

View File

@@ -91,9 +91,9 @@
[self presentViewController:alert animated:YES completion:nil];
}
- (void) launchFailed {
- (void) launchFailed:(NSString*)message {
UIAlertController* alert = [UIAlertController alertControllerWithTitle:@"Connection Failed"
message:@"Failed to start app"
message:message
preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"Ok" style:UIAlertActionStyleDestructive handler:^(UIAlertAction* action){
[self performSegueWithIdentifier:@"returnToMainFrame" sender:self];