NSUncaughtExceptionHandler is not called on iOS 6

I use NSSetUncaughtExceptionHandlerto set the handler in my delegate deltaiter didFinishLaunching..., then create a deliberate failure in the application code, but it uncaughtExceptionHandlernever gets called: neither on the simulator, nor on the device.

He worked in the same code in previous versions of iOS. But starting with iOS 6 - no more. Does someone have the same behavior? I googled around but did not find any explanation. Thanks for any answers.

+5
source share
1 answer

There can only be one in the application NSUncaughtExceptionHandler. It is possible that some other code in your application registers a handler (after that), and thus this code catches exceptions, but you do not.

0

All Articles