我有问题。我需要解决这个越狱iOS问题。我的应用程序在后台模式下运行。我希望该应用程序在发生一些事件后从后台进入前台模式。 我尝试了下一条指令:
system([[NSString stringWithFormat:@"uiopen \"%@\"", @"appname://"] UTF8String])
但是应用程序没有从后台运行。应用程序作为新进程运行。 谢谢。
最佳答案
用户私有(private)API:
int SBSLaunchApplicationWithIdentifier(CFStringRef displayIdentifier, Boolean suspended);
它是在 SpringboardServices 私有(private)框架中定义的。
您需要添加权利“com.apple.springboard.launchapplications”才能使其正常工作。
关于iphone - 越狱的iOS : how resume(in foreground) from background,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18303238/