针对越狱 iPhone 的 Kill 命令
嘿,我正在为我的应用程序寻找一个终止命令,可以让我终止其他应用程序。我希望我的应用程序能够在我的应用程序处于后台时杀死其他应用程序。我发现了这个kill命令:
Class $SBApplicationController = objc_getClass("SBApplicationController")
SBApplication *app = [[$SBApplicationController sharedInstance]
applicationWithDisplayIdentifier:displayIdentfier];
if (app)
[app kill];
唯一的问题是它似乎只适用于Mac OSX,我试图在我的越狱iPhone上执行此操作,所以我需要iOS。我想知道是否有人知道可以做到这一点的终止命令?或者有什么方法可以将这个kill命令从Mac OSX转换为iOS?
Hey I am looking for a kill command for my app that lets me kill other apps. I want my app to be able to kill other apps while my app is in the background. I found this kill command:
Class $SBApplicationController = objc_getClass("SBApplicationController")
SBApplication *app = [[$SBApplicationController sharedInstance]
applicationWithDisplayIdentifier:displayIdentfier];
if (app)
[app kill];
The only problem is it seems to only work for Mac OSX and I am trying to do this on my jailbroken iPhone so I need iOS. I was wondering if anybody knew of a kill command that can do this? Or is there any way to convert this kill command from Mac OSX to iOS?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你似乎很困惑。 SBApplicationController 是 iOS 特定的类;它在 Mac OS X 上不存在。
You seem to be confused. SBApplicationController is an iOS-specific class; it doesn't exist on Mac OS X.