如何拨打一个号码,五秒钟后在拨号盘上键入号码?
我正在创建一个 0800 转接应用程序,允许用户使用他/她的每月信用额度拨打 0800 号码转接服务,而不是通过直接拨打 0800 号码到本机电话应用程序来支付额外费用。基本上,XCode 将从标签中获取 0800 号码,并拨打转换号码 (01212842800),然后立即拨入键盘(在同一呼叫中),即标签中的 0800 号码。
如果您知道我的意思,请问我该怎么做?
I am creating an 0800 diverting app which allows the user to use his/her monthly credit to phone an 0800 number diversion service rather than pay extra by dialling in the 0800 number directly to the native phone app. Basically XCode will take the 0800 number from a label and will phone the conversion number (01212842800) then straight after, it will dial in to the keypad (on the same call), the 0800 number from the label.
If you know what I mean, how would I do this please?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅以下问题:以编程方式拨号电话号码并使用 iPhone SDK 传递 DTMF
看来您无法以编程方式拨打号码,但您可以通过在拨打的号码中使用“,”来实现您想要做的事情。
EX:
[[UIApplication共享应用程序] openURL:[NSURL URLWithString:@"tel:01212842800,,,,,,,,,,NUMBER_HERE"]];
逗号充当停顿。
See this question on SO: Programmatically Dial a Phone number and pass DTMF using the iPhone SDK
It appears that you cannot dial a number programmatically, but you can achieve what you're trying to do by using ","s in the number that you call.
EX:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:01212842800,,,,,,,,,NUMBER_HERE"]];
With the commas acting as pauses.