Detect app crashed during load / last time it was run?
问题 I would like for my app to reset to standard settings if it crashed during startup. Preferably also if it crashed last time it was run . EDIT: Crittercism has a crittercismDidCrashOnLastLoad method, but it only handles the case of crashing during load. It didn't work properly in the version of the library I used, but this has since been fixed. Suggestions? 回答1: Make 2 functions in your AppDelegate.m file: void HandleException(NSException *exception) { NSLog(@"App crashing with exception: %@",