Display a failure dialog when we fail to launch an app

This commit is contained in:
Cameron Gutman
2014-10-21 15:54:19 -04:00
parent ea24b39fbe
commit 85b65d7112
3 changed files with 32 additions and 9 deletions

View File

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