I want the user to start the app and leave it running. At one point, the app will finish what it is doing and will shut itself down. How can I do that in Objectve C
A:
This is possible by using method:
exit(0);
However, be warned that Human Interface Guideliness discourage the use of this function, as it looks as if the application had crashed. The good solution for such a usecase is to prompt user that the application has finished working, and that he may close it now.
Hope this helps, Paul
Pawel
2010-05-06 12:01:43
Apple does not like apps committing suicide: http://stackoverflow.com/questions/355168/proper-way-to-exit-iphone-application/356342#356342
progrmr
2010-05-06 12:37:26
A:
Thanks Paul. I found another thread at http://stackoverflow.com/questions/355168/proper-way-to-exit-iphone-application Perhaps Apple doesnt like applications committing suicide ;)