本文介绍了iOS 4.2 - 通过电话后返回应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我可以使用以下内容在我的应用内成功发起电话:

I can successfully initiate a phone call within my app using the following:

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];

但是,一旦电话通话终止,是否可以自动返回应用程序?这似乎在iPhone OS 3.0下是不可能的,但我希望现在可以在iOS 4.2下进行多任务处理(我无法找到有关iOS 4.2特定问题的任何信息)。

However, is it possible to automatically return back to the app once the phone call has been terminated? It seems this was not possible under iPhone OS 3.0 but I am hoping it is now possible under iOS 4.2 with multitasking (I wasn't able to find any information on this question specific to iOS 4.2).

提前感谢您的任何帮助!

Thanks in advance for any assistance!

推荐答案

据我所知,因为控制是传递给phone.app进行通话,一旦通话结束,就iOS而言,phone.app是当前应用程序,因此保持在前台。

As far as I'm aware, because control is passed to the phone.app to make the call, once the call has ended, as far as iOS is concerned phone.app is the current app so that stays in the foreground.

目前似乎没有什么可以做的。可能值得提出功能请求以允许类似于 MFMessageComposer 的模态电话,允许您在自己的应用程序中发送电子邮件/短信。

There doesn't seem to be anything you can do about this at the moment. It might be worth putting in a feature request to allow for a "modal phone call" similar to MFMessageComposer that allows you to send emails/sms within your own app.

编辑

您可以按照以下建议在中给出包含更多最新信息。

You can follow the advice that Frin gives in the answer below as this contains more up to date information.

这篇关于iOS 4.2 - 通过电话后返回应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 18:57