Possible Duplicate:
Exit application in iOS 4.0
I have a AlertView which displays some text and a "OK" button.
if user press ok button then app need to exit.
Is there any way to exit application when on click button.
I have a AlertView which displays some text and a "OK" button. if user press ok button then app need to exit. Is there any way to exit application when on click button. |
||||
|
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
Plus, if you try to hide that function, it would be understood by the user as a crash. |
|||
|
You can use exit method to quit an ios app :
You should say same alert message and ask him to quit Another way is by using However you should not do this way According to Apple, your app should not terminate on its own. Since the user did not hit the Home button, any return to the Home screen gives the user the impression that your app crashed. This is confusing, non-standard behavior and should be avoided. |
|||||||||||
|