gpt4 book ai didi

ios - 如何在iPhone中调用以*开头的电话?

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

在我的应用中,我想调用号码*111,当我使用这个网址tel:*111调用电话时,却无法调用成功,请指点一下,非常感谢。

[[UIApplication sharedApplication] openURL:@"tel:*111"] 

没有工作。但它会在删除 * 时起作用:

[[UIApplication sharedApplication] openURL:@"tel:111"];

最佳答案

这是不可能的。来自Apple URL Scheme Reference :

To prevent users from maliciously redirecting phone calls or changing the behavior of a phone or account, the Phone application supports most, but not all, of the special characters in the tel scheme. Specifically, if a URL contains the * or # characters, the Phone application does not attempt to dial the corresponding phone number.

关于ios - 如何在iPhone中调用以*开头的电话?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2956692/

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