开发者

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜