gpt4 book ai didi

iphone - 越狱 iOS : how resume(in foreground) from background

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:11:32 26 4
gpt4 key购买 nike

我有问题。我需要为 越狱 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/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com