Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
无论如何为iPhone应用程序实现一个全局异常处理程序,这样异常而不是静默地使应用程序崩溃,可以允许某种消息?
我可以理解它是否不可行,因为程序可能处于不一致的状态,但至少告诉用户“对不起 - 出了点问题!”会很好。
谢谢!
检查这个问题的答案。这似乎表明您将获得垃圾堆栈跟踪,但您绝对可以设置一个全局异常处理程序。祝你好运!