为越狱的iPhone杀死命令 [英] Kill Command for a jailbroken iPhone

查看:152
本文介绍了为越狱的iPhone杀死命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿我正在为我的应用程序寻找一个kill命令,让我杀死其他应用程序。我希望我的应用能够在我的应用在后台时杀死其他应用。我找到了这个kill命令:

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];

唯一的问题是它似乎只适用于Mac OSX而我试图在我的越狱iPhone所以我需要iOS。我想知道是否有人知道可以做到这一点的杀戮命令?或者有没有办法将这个kill命令从Mac OSX转换为iOS?

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?

推荐答案

你好像很困惑。 SBApplicationController是一个特定于iOS的类;它在Mac OS X上不存在。

You seem to be confused. SBApplicationController is an iOS-specific class; it doesn't exist on Mac OS X.

这篇关于为越狱的iPhone杀死命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆