使用 tel: url 发起呼叫 - 但需要插入特殊字符 #
我需要发起一个调用,该调用还输入一个由 # 分隔的 id
问题是,一旦我插入这个特殊字符,该方法就不会触发(正如文档中所解释的,我知道)
另外 stringByAddingPercentEscapesUsingEncoding 不会改变任何东西。
有解决方法吗?我可以发送/模拟击键吗?
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]];
<- 因为 # 它不会触发。
非常感谢....
Possible Duplicate:
How to use tel: with * (star, asterisk) or # (hash, pound) on iOs?
I need to initiate a call which also enters an id separated by #
The problem is that as soon as I insert this special character the method does not fire (as explained in the doc, I know)
Also stringByAddingPercentEscapesUsingEncoding does not change anything.
Is there a workaround? Can I send /simulate key strokes ?
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:12345#2"]];
<- because of the # it does not fire.
Thanks very much....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
CTCallDialWithID(@"12345#2", -1);
并与 CoreTelephony 链接。
CTCallDialWithID(@"12345#2", -1);
and link with CoreTelephony.
我认为这是不可能的。在另一个论坛上,有人向苹果询问了这个问题,但从未得到答复
I think it's not possible. And in another forum someone asked Apple about that, but never get an answer back
根据 RFC2806 你有一个“拨号后”部分这似乎可以让你做你想做的事。
尝试:
According to RFC2806 you've got a 'post-dial' part that seemingly let's you do what you want.
Try: