简体   繁体   English

telprompt:从电话的警报和通话记录中删除分机号

[英]telprompt: Removing extension no from alert and call log of phone

I am trying to make a call through the telpromt command to return to my application after it makes a call: 我正在尝试通过telpromt命令进行调用,以在调用后返回我的应用程序:

NSString *telno = @"telprompt://121,,,,14";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:telno]];

It shows an alert view showing which number I am calling. 它显示一个警报视图,显示我正在呼叫的号码。 For above code it shows "121,,,,14" in alertview and recent call log of Phone. 对于上面的代码,它在Alertview和Phone的最近通话记录中显示“ 121 ,,, 14”。 I have found some app, they does not show extension number, they only show "121" in alertview for example and in call log it shows "App Name" as dialed contact and "121" as dialed number. 我找到了一些应用程序,它们没有显示分机号码,例如,它们在alertview中仅显示“ 121”,并且在通话记录中,它以“ App Name”显示为已拨电话联系人,以“ 121”显示为已拨电话。 [Actually that app programetically adds a contact named "App Name" with main no "121" for example]. [实际上,该应用程序以编程方式添加了一个名为“应用程序名称”的联系人,例如其主号码为“ 121”]。 Is there any way to remove extension number [for example ",,,,14"] from alert and call log of phone? 有什么方法可以从电话的警报和通话记录中删除分机号码[例如,“ ,,, 14”]?

Don't use telprompt , just display a normal UIAlertView with a cancel and call button. 不要使用telprompt ,只需显示带有取消和呼叫按钮的普通UIAlertView即可。 Then when you have full control over the message in the UIAlertView , if the user choices call just use the tel scheme. 然后,当您完全控制UIAlertView的消息时,如果用户选择呼叫,则仅使用tel方案。

Also telprompt is not an official scheme, thus Apple can remove it in any future version of iOS. 另外telprompt也不是官方计划,因此Apple可以在任何将来的iOS版本中将其删除。

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

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