How can I manually close my app? I've looked under UIApplication and UIResponder but can't find a method for this and I don't know where else to look.
Thanks, Nate
Do a search. This has been asked multiple times, once by me where I answered my own question. In short: there is no supported way to do this and the iPhone HIG basically says not to do it. Assuming you want all the normal notifications to get sent/the app to shut down cleanly you can only do it via a non-public API.
Edit: Here is my thread with a solution. It does actually work anywhere. You can code around the compiler warning easily using performSelector:
The only issue with that is that it does not fire the normal application quit notifications so your app might well not save it's state correctly. Of course you could call the save routines directly then call exit()...