开发者

How to force exit iOS application using Monotouch?

How to force exit iOS applic开发者_运维问答ation using Monotouch?When network not available I want to exit application. Thanks for your advice.


I use the following code in my app:

UIApplication.SharedApplication.PerformSelector(new Selector("terminateWithSuccess"), null, 0f);

It is not recommended by apple to use such selectors, however they did not reject my application.


You cannot do this with native iOS coding (Objective C) so I would not expect that you can do it with anything else. Check out this question Exit application in iOS 4.0

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜