```
- (BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions {
// Override point for customization after application launch.
NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);
returnYES;
}
```
```
staticvoiduncaughtExceptionHandler(NSException*exception) {
NSLog(@"%@\n%@", exception, [exceptioncallStackSymbols]);
}
```