What’s the best way to exit an iPhone application?

1149695 pts.
Tags:
iPhone
Mobile
I've been recently programming an iPhone application and due to some unforeseen circumstances, I might need to force it to exit. I've already cleaned up the memory that the app has allocated so what would be the best way to call to terminate the app?
1

Answer Wiki

Thanks. We'll let you know when a new response is added.

This is probably not the answer you were looking for, but there is no ‘best way’ because that is something that should not be done.

Some people recommend and use the exit function, but Apple has officially discouraged its use.

See this: How do I programmatically quit my iOS application? – Technical Q&A QA1561

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: