ProAnswers.org

what is the Proper way to exit iPhone application?

I am iPhone apps programmer.

1 Like

First you try exit(0).

Alternatively, [[NSThread mainThread] exit], although I have not tried that it seems like the more appropriate solution.

Note:
its not recommended to close your app automatically.
http://developer.apple.com/library/ios/#qa/qa1561/_index.html