gpt4 book ai didi

ios - 没有警报的电话提示

转载 作者:可可西里 更新时间:2023-11-01 05:37:22 26 4
gpt4 key购买 nike

我的应用程序需要拨号,我知道 telprompt 会在拨号后返回到应用程序。但是它会在每次要调用号码时提醒用户,有什么方法可以在不显示提醒 View 的情况下直接调用电话号码?

最佳答案

您可以使用以下代码调用电话:-

NSString *value =@"9999999999";//your telnumber
NSURL *url = [[ NSURL alloc ] initWithString:[NSString stringWithFormat:@"tel://%@",value]];

NSLog(@"currunt number%@",url);
[[UIApplication sharedApplication] openURL:url];

关于ios - 没有警报的电话提示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13719716/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com