kill a running application using mobile substrate - iphone?
I need to kill a running application on iPhone using mobile substrate.Can anybody help me to do so? Or just give me an idea if it is 开发者_如何转开发possible or not / if possible how ?
Looking forward ..
Thanks Syam
use exit(0)
whenever you want to terminate the application through code
Edited: (answered by syam)
Class $SBApplicationController=objc_getClass("SBApplicationController") SBApplication *app=[[$SBApplicationController sharedInstance] applicationWithDisplayIdentifier:displayIdentfier];
if(app) [app kill];
hAPPY cODING...
精彩评论