iOS 中拨打电话

iOS 10以前

    NSString *phoneStr = [NSString stringWithFormat:@"telprompt://%@",@"18150830596"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneStr]];

iOS 10以后

    NSString *phoneStr = [NSString stringWithFormat:@"telprompt://%@",@"18150830596"];
    [[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneStr]
                                       options:@{}
                             completionHandler:^(BOOL success) {
        NSLog(@"success");
    }];

原文地址:https://www.cnblogs.com/1lin24/p/14469055.html