Iphone dialogue error?

I wonder if the dialgo can be displayed when an unexpected error occurred on the iPhone (and the blind application does not stop!), And you have time to register or send an accident via email ...

+4
source share
3 answers

Yes. Implements NSSetUncaughtExceptionHandler (& uncaughtExceptionHandler) to run, and then use something like Crash Reporter . Good material.

+5
source

I don't know if the dialog can be displayed, but you can probably make some entries by specifying a top-level exception handler using the NSSetUncaughtExceptionHandler function

+4
source

I remember that there is a way that you could override in the delegation class of the application, which will be called in case of an unhandled exception. A few days ago, someone wrote a blog post where they sent exception information to a web service from this method.

I apologize for not being able to find the method name in the UIApplicationDelegate protocol or in the blog I saw the other day. Apple's online documentation is currently not searchable (grrr!), And I can't remember where I saw this blog post - if I find it, I will edit this post to include a link to it.

But he may have the ability to recover some kind of, or at least the ability to store error information on disk so that it can be sent later.

+1
source

All Articles