开发者

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

开发者 https://www.devze.com 2023-01-02 12:39 出处:网络
In my application, I want to call the number *111, when I use this U开发者_Go百科RL tel:*111 to call, but can\'t make call success, please give me some indicate, thank you very much.

In my application, I want to call the number *111, when I use this U开发者_Go百科RL 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"];


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号