我正在尝试使用以下方式从 ios 应用程序拨打电话号码:它不起作用,尽管该方法被调用:
-(IBAction)callPhone:(id)sender {
NSString *phoneCallNum = [NSString stringWithFormat:@"tel://%@",listingPhoneNumber ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneCallNum]];
NSLog(@"phone btn touch %@", phoneCallNum);
}
NSLog
输出:电话 btn touch tel://+39 0668806972