简体   繁体   English

启动iPhone拨号器,但使用联系人姓名而不是号码

[英]Launching the iPhone dialler but with contact name instead of number

I am trying to create a simple dialler for my iPhone. 我正在尝试为我的iPhone创建一个简单的拨号程序。 I know that there is no way of doing this unless I launch the native dialler using ://tel... I do not have a problem with this but the question is, is there a way to send a name along with the number I want to dial to the dialler so that what appears in the dialler entry field would be a name rather than a number? 我知道除非我使用:// tel启动本机拨号器,否则无法执行此操作。我对此没有问题,但问题是,是否可以将名称和号码一起发送想要拨号到拨号程序,以便在拨号程序输入字段中显示的是名称而不是数字? so instead of showing "+441234567890" on the dialer I want to show "Test Number". 因此,我不想在拨号器上显示“ +441234567890”,而是要显示“测试编号”。

In case this is not acceptable could I do something similar given that the contact is in the iPhone contacts list? 如果不可接受,鉴于联系人在iPhone联系人列表中,我可以做类似的事情吗? so I will send to the dialer a reference or something to the contact i want to dial? 所以我会向拨号器发送我要拨号的联系人的参考或其他内容吗?

Cheers Abolfoooud 干杯阿博布

If I have the number +123456789 In my contact list, and an app dials it, then it will be replaced with the contact name, just as if you typed it in instead of calling from the contact. 如果我的联系人列表中有+123456789的号码,并且有一个应用程序拨打该号码,那么它将被替换为联系人姓名,就像您键入该姓名而不是从该联系人拨打电话一样。

If the user adds a contact with the number, as prompted by your app, then your idea may work, pending on the user's actions. 如果用户按照您的应用程序的提示添加带有该号码的联系人,则您的想法可能会有效,取决于用户的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM