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

  • SEARCH
  • Home
  • 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 8492023
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T22:35:59+00:00 2026-06-10T22:35:59+00:00

I want to exit my application programatically, I googled, some people suggesting to use

  • 0

I want to exit my application programatically, I googled, some people suggesting to use exit(1), but apple is not supporting that I guess. If it is the case, How do I exit my application programatically. Any helps appreciated.

  • 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-06-10T22:36:00+00:00Added an answer on June 10, 2026 at 10:36 pm

    exit(0); will work but don’t use it

    You shouldn’t force close an app as the standard way to terminate an application is to press the home button (or use the multitasking bar)

    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.

    Display an attractive screen that describes the problem and suggests a
    correction.
    A screen provides feedback that reassures users that
    there’s nothing wrong with your application. It puts users in control,
    letting them decide whether they want to take corrective action and
    continue using your application or press the Home button and open a
    different application

    If only some of your application’s features are not working, display
    either a screen or an alert when people activate the feature.
    Display
    the alert only when people try to access the feature that isn’t
    functioning.

    Source

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

Sidebar

Related Questions

I have a script that I want to exit early under some condition: if
We do not want to use exit(0) to make the app close, we do
After processed some activity, i want to exit the application.I implemented public void onBackPressed()
I'm working on a C++ Windows application, that runs as a process but not
I am developing one application. In that application I want to put Exit button.
i have a menu contains of one item (item to exit application), i want
I want to know how and when can I use the exit() function like
Application-Stack: Rails3, CanCan, Devise, Shoulda I've got some nested Resources and want to test
Salve! I want to exit my GUI application (vb.net 4) using a commandline parameter.
When reading/writing a file in my application, I want to exit(1) if the file

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.