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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:31:09+00:00 2026-06-17T05:31:09+00:00

Possible Duplicate: Exit application in iOS 4.0 I have a AlertView which displays some

  • 0

Possible Duplicate:
Exit application in iOS 4.0

I have a AlertView which displays some text and an “OK” button. Is there any way to exit application when clicked on OK button?

  • 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-17T05:31:10+00:00Added an answer on June 17, 2026 at 5:31 am

    exit(X), where X is a number (according to the doc) should work.
    But it is not recommended by Apple and won’t be accepted by the AppStore.
    Why? Because of these guidelines (one of my app got rejected):

    We found that your app includes a UI control for quitting the app.
    This is not in compliance with the iOS Human Interface Guidelines, as
    required by the App Store Review Guidelines.

    Please refer to the attached screenshot/s for reference.

    The iOS Human Interface Guidelines specify,

    “Always Be Prepared to Stop iOS applications stop when people press
    the Home button to open a different application or use a device
    feature, such as the phone. In particular, people don’t tap an
    application close button or select Quit from a menu. To provide a good
    stopping experience, an iOS application should:

    Save user data as soon as possible and as often as reasonable because
    an exit or terminate notification can arrive at any time.

    Save the current state when stopping, at the finest level of detail
    possible so that people don’t lose their context when they start the
    application again. For example, if your app displays scrolling data,
    save the current scroll position.”

    > It would be appropriate to remove any mechanisms for quitting your
    app.

    Plus, if you try to hide that function, it would be understood by the user as a crash.

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

Sidebar

Related Questions

Possible Duplicate: Application.Exit I have a Winforms app in which Application.Exit() fails to run.
Possible Duplicate: Returning in a static initializer Is there a way to exit a
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: Proper way to exit iPhone application? How can I Crash my app?
Possible Duplicate: Detecting Browser exit in PHP I have some user related files in
Possible Duplicate: android - exit application code I am finding the way to exit
Possible Duplicate: When you exit a C application, is the malloc-ed memory automatically freed?
Possible Duplicate: When you exit a C application, is the malloc-ed memory automatically freed?
Possible Duplicate: How to stop C++ console application from exiting immediately? I have the
Possible Duplicate: Automatic exit from bash shell script on error How can I have

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.