Kill Command for a jailbroken iPhone

微笑、不失礼 提交于 2020-01-30 11:28:06

问题


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?


回答1:


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



来源:https://stackoverflow.com/questions/8963640/kill-command-for-a-jailbroken-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!