18

Is there anyway to implement a global exception handler for iPhone apps such that exceptions, instead of silently crashing the app, could allow for some sort of message?

I can understand if it's not do-able since the program may be in an inconsistent state, but it'd be nice to at least tell users "Sorry - something went wrong!"

Thanks!

grahamparks
  • 16,130
  • 5
  • 49
  • 43
Mark
  • 7,306
  • 8
  • 45
  • 87

1 Answers1

15

Check this question for the answer. It seems to indicate that you'll be getting junky stack traces, but you definitely can set a global exception handler. Good luck!

Community
  • 1
  • 1
Sam Ritchie
  • 10,988
  • 4
  • 42
  • 53