如何在iPhone中拨打以*开头的电话? [英] How to make a call which begin with * in iPhone?
问题描述
在我的应用程序中,我想拨打号码* 111,当我使用此URL tel:* 111来拨打电话,但无法拨打电话成功,请给我一些说明,非常感谢。
In my application, I want to call the number *111, when I use this URL tel:*111 to call, but can't make call success, please give me some indicate, thank you very much.
[[UIApplication sharedApplication] openURL:@"tel:*111"]
不起作用。但是当删除 *
时它会起作用:
was not work. but it will work when remove *
:
[[UIApplication sharedApplication] openURL:@"tel:111"];
推荐答案
这是不可能的。从 Apple URL Scheme Reference :
防止用户恶意重定向电话或更改电话或帐户的行为,Phone应用程序支持tel方案中的大多数但不是全部特殊字符。具体来说,如果URL包含*或#字符,则电话应用程序不会尝试拨打相应的电话号码。
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.
这篇关于如何在iPhone中拨打以*开头的电话?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!