Display a failure dialog when we fail to launch an app
This commit is contained in:
parent
ea24b39fbe
commit
85b65d7112
3 changed files with 32 additions and 9 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in a new issue