Possible duplicate:
call exit (0) in iphone application
Suppose I encountered a serious error in the iPhone application - I could not create an instance of the required Core Data stack or something like that. I understand that Apple recommends simply interrupting, and not trying to show the user an error that they cannot do anything about.
- Is it correct?
- Interrupts () is the recommended way to abort, or does Cocoa have something better?
Apple iOS HIG says: "Warnings are usually not needed if they ... inform users of errors or problems that they cannot do anything about."
source
share