2

I'm trying to open the app "Calculator" but I don't know the Scheme

- (IBAction)btnColetorClick:(id)sender
{
    NSString *customURL = @"calculator://";

    if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:customURL]])
    {
        [[UIApplication sharedApplication] openURL:[NSURL URLWithString:customURL]];
    }
    else
    {
        UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"URL error"
                                                        message:[NSString stringWithFormat:@"No custom URL defined for %@", customURL]
                                                       delegate:self
                                              cancelButtonTitle:@"Ok"
                                              otherButtonTitles:nil];
        [alert show];
    }
}
Borys Verebskyi
  • 4,160
  • 6
  • 28
  • 42
sdadsad
  • 143
  • 1
  • 12

2 Answers2

1

It seems that there is no scheme for the native calculator.

Related:

api for showing native calculator in iOS app


Launch an app from within another (iPhone)

Community
  • 1
  • 1
the_critic
  • 12,720
  • 19
  • 67
  • 115
0

You can try "calc://"

it works on iOS13

Alex Alex
  • 1
  • 1