我将如何拨号,然后在五秒钟后将数字键入拨号盘? [英] How would I dial a number and then key in numbers to the dialpad five seconds after?

查看:99
本文介绍了我将如何拨号,然后在五秒钟后将数字键入拨号盘?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个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?

推荐答案

在SO上查看此问题:

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

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel:01212842800,,,,,,,,,NUMBER_HERE"]];

逗号作为暂停.

这篇关于我将如何拨号,然后在五秒钟后将数字键入拨号盘?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆