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 6835805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:16:36+00:00 2026-05-26T23:16:36+00:00

I have an app that runs for a while, but needs to be reset

  • 0

I have an app that runs for a while, but needs to be reset every day, because it’s lifecycle is a bit different than most other apps. It seems that the easiest way to do this is to kill the app and re-launch it.

I found a solution that kills the app when the home button is tapped:

In your application’s Info.plist, add a boolean key
UIApplicationExitsOnSuspend with the value YES

This is not something that I want to do. I need to give the user an option to kill/reset the app before it is used. I can certainly ask the user to double tap the home key and kill the app with a long press>x. Yet this is too complex for some users.

Another simple solution would be to have a button do something crashworthy, like divide by 0, although I’m not sure if the app store would penalize my app for “crashing” every single day for all users.

Has anyone found a way to add an “exit” button to an iPhone app? In android, I could do system.exit(0), which worked. What’s the iPhone alternative?

  • 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-26T23:16:36+00:00Added an answer on May 26, 2026 at 11:16 pm

    iOS Human Interface Guide says –
    Don’t Quit Programmatically

    Never quit an iOS application programmatically because people tend to
    interpret this as a crash. However, if external circumstances prevent
    your application from functioning as intended, you need to tell your
    users about the situation and explain what they can do about it.
    Depending on how severe the application malfunction is, you have two
    choices. …


    exit(0); can terminate the application (0 is a normal code), but Apple don’t like this approach, and the application would be rejected in review.

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

Sidebar

Related Questions

We have a WinForms app that runs fine on x86, but has many third-party
This a bit of strange one.... We have an internal web app that runs
I have an app that runs a process which needs to open an internet
Basically I have a form that goes full screen automatically. But while Inet runs,
I have an android app which runs a foreground service and while that service
I have a windows app that runs correctly in my PC that is 96DPI
I have a web database app that runs in IE7+ (customer requirement) It is
I have written a C# app that runs constantly in a loop and several
I'm have a Java app that also runs as an applet. The app also
I have a simple .NET 2.0 windows form app that runs off of a

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.