iOS上带有主题标签的电话号码 [英] Phone call number with hashtag on iOS
问题描述
如何在iOS上拨打这个号码* 199 * 123456789#?
How do I make a call to this number *199*123456789# on iOS?
我使用了以下代码,但它不起作用。
I used the following code but it doesn't work.
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:*199*123456789#"]];
推荐答案
引用网址方案文档
为了防止用户恶意重定向电话或更改手机或帐户的行为,电话应用程序支持电话方案中大部分但不是全部的特殊字符
。
具体来说,如果URL包含*或#字符,则Phone
应用程序不会尝试拨打相应的电话号码。
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.
从我所看到的情况看,你可以使用的唯一方案就是:
From what I'm seeing, it looks like the only scheme that you can use is something to the effect of:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1234567890p111"]];
拨打分机。
这篇关于iOS上带有主题标签的电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!