【发布时间】:2021-07-18 16:21:11
【问题描述】:
我正在尝试使用以下方式从 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
【问题讨论】:
-
签出原生应用 URL 字符串 项目符号:developer.apple.com/library/ios/featuredarticles/…
标签: ios objective-c