Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6103177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T13:41:58+00:00 2026-05-23T13:41:58+00:00

I know this question has been asked many times and we have gotten this

  • 0

I know this question has been asked many times and we have gotten this link as an answer from Apple:
http://developer.apple.com/library/ios/#qa/qa1561/

However, recently, I met with this case below. I don’t see any other options except using ‘exit(0)’ directly.

I have an app which can collect digital data from camera or microphone of my iPhone.
Then I designed a button which reads ‘Save and Exit’, because this is a very common scenario of my app.

Without the capability to exit my app programatically, I can only have a stupid ‘Save’ button. Then my users have to click twice ( 1. the ‘Save’ button, and then 2. the ‘Home’ button ) to get the same result – a.k.a these two actions in sequence together.

Then I realized, maybe, this is a flaw of my design. Hence I changed it this way.

I removed the ‘Save the Exit’ button and, instead, added a note in the bottom says ‘Use HOME button to SAVE & EXIT’. I tried to catch the quitting signal from users’ action and then do the SAVE in prior.

By doing this, user can simply use the native HOME button to do the ‘SAVE and EXIT’.

However, this solution is not perfect.

If my app takes too long to save the data, there’s still a chance for iOS to kill my app after user hits the ‘HOME’ button. Then user can lost their data without notice!

If I can exit programmatically, I can try to ‘SAVE’ first. If ‘SAVE’ fails, I have plenty of time to inform my user or do all the remediation work needed.

Do you think this is a valid justification to use ‘exit(0)’ in my app without being rejected?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T13:41:58+00:00Added an answer on May 23, 2026 at 1:41 pm

    No, I very much doubt that Apple will let you have a “save and exit” button. It goes completely against the platform conventions and directly contradicts Apple’s HIG.

    Under which circumstances do you think you’ll have data that can’t be saved in the amount of time iOS gives an app to clean up? Have you actually measured this and found it to be a problem?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question has been asked many times. But from what I read,
I know this question has been asked many times, but I have not been
I know this question has been asked many times on here but I have
I know this question has been asked many and many times, but I have
I know this question has been asked many times, but my problem is a
I know this is a question that has been asked many times before, but
I know this question has been asked many times, and I've searched stackoverflow and
I know this question has been asked many times and I've researched it myself
I know this question has been asked many times, but I never saw a
Ok I know this question has been asked many many many times before, but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.