How to make a call which begin with * in iPhone?

自古美人都是妖i 提交于 2019-11-26 23:38:21

问题


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"];

回答1:


It's not possible. From the 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.



来源:https://stackoverflow.com/questions/2956692/how-to-make-a-call-which-begin-with-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!