2

我有问题。我需要为越狱 iOS解决这个问题。我的应用程序在后台模式下工作。我希望该应用程序在某些事件后从后台进入前台模式。我尝试了下一条指令:

system([[NSString stringWithFormat:@"uiopen \"%@\"", @"appname://"] UTF8String])

但应用程序没有从后台运行。应用程序作为新进程运行。谢谢你。

4

1 回答 1

3

用户私有 API:

   int SBSLaunchApplicationWithIdentifier(CFStringRef displayIdentifier, Boolean suspended);

它在 SpringboardServices 私有框架中定义。

您需要添加权利“com.apple.springboard.launchapplications”才能使其正常工作。

于 2013-08-18T22:22:29.510 回答