Possible Duplicate:
call exit(0) in iphone app
Suppose I encounter a serious error within an iPhone app -- unable to instantiate a required Core Data stack, or something of the sort. My understanding is that Apple recommends simply aborting, rather than attempting to display an error to the user that they will not be able to do anything about.
- Is this correct?
- Is abort() the recommended way to abort, or does Cocoa have something better?
The Apple iOS HIG says "alerts are usually unnecessary if they ... inform users of errors or problems about which they can do nothing."