计算器的计划是什么?

时间:2016-03-07 18:06:27

标签: ios objective-c xcode

我试图打开应用程序"计算器"但我不知道该计划

- (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];
    }
}

1 个答案:

答案 0 :(得分:1)

似乎本机计算器没有计划。

相关:

  

api for showing native calculator in iOS app

  

Launch an app from within another (iPhone)