删除使用telprompt从iOS应用程序调用时popup的警报://

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

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

我达到我想要的,但得到一个不需要的警报,确认用户是否要打电话。 我不想要这个

如果我使用的代码

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

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

有没有办法让我打电话没有得到警报,并在打电话后回到应用程序屏幕? 请帮忙..

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

如果用户离开应用程序拨打电话,则无法在其后返回到您的应用程序。 你的应用程序是背景,手机应用程序是foregrounded。