删除使用telprompt从iOS应用程序调用时弹出的警报:// [英] remove the alert that pops up when calling from iOS app using telprompt://

查看:122
本文介绍了删除使用telprompt从iOS应用程序调用时弹出的警报://的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从我的iOS应用程序拨打电话,在用户完成呼叫后,我需要他回到他拨打电话的同一个应用程序屏幕上。如果我使用以下代码

I need to make a call from my iOS app, and after the user is done calling, i need him to come back on the same app screen from where he made the call. if i use the following code

NSString *phoneNumber = [@"telprompt://" stringByAppendingString:@"999999999"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

我实现了我想要的,但获得了一个不需要的警报,确认用户是否想要打电话或不。我不想要这个。

i achieve what i want, but get an unwanted alert confirming if the user wants to make a call or not. I don't want this.

如果我使用代码

NSString *phoneNumber = [@"tel://" stringByAppendingString:@"999999999"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phoneNumber]];

我没有得到警报,但我也没有回到我的应用程序屏幕..! !

i do not get the alert, but i do not get back to my app screen too..!!

有没有办法在拨打电话时没有收到警报并在拨打电话后回到应用程序界面?请帮助..

Is there a way where i do not get the alert while making the call and get back to the app screen after making the call?? please help..

推荐答案

你不能这样做,这是两种可能性。 telprompt 有警报和回调或 tel 没有回来且没有警报。

You cannot do otherwise, those are the two possibilities. telprompt with alert and callback or tel with not coming back and no alert.

这篇关于删除使用telprompt从iOS应用程序调用时弹出的警报://的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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