开发者

Problem with Exit the application

Iam developing an application in which there is a AlertView which has 2 button saying "OK" "Cancel" by pressing OK button My application will exit and got开发者_如何学Co the home screen of iphone so i used exit(0) code, does apple allows to exit in this way or there is any other way to the exit from the application? Please suggest some solution?

Thank You...


Yes, this is the only legal way to exit application programmatically. Although Apple states in its HIG that the correct way to terminate application is to press home button.

This question is well discussed on SO. (see this similar question and you can easily find others using site search)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜