如何检查应用程序是否在后台运行

时间:2011-12-19 10:54:05

标签: iphone ios ios4

我让我的应用程序成为后台运行,它将成为基于voip的应用程序

Open application's Info.plist file.
Added a new row and type in the Key field "Required background modes".
Expand this array and for Item 0, type in the Value field "App provides Voice over IP services"

现在我想检查一下,在后台工作后是否正常工作?

我一直试图了解这一点并且我已经搜索了很长时间但似乎没有任何帮助......

请指导我。

如何确保我的应用即使在后台状态下也能正常工作?

由于

2 个答案:

答案 0 :(得分:1)

在后台尝试NSLog-ging,并检查日志是否显示在控制台中。

答案 1 :(得分:0)

显而易见的方法是尝试与它建立voip连接并查看它是否响应?