void exceptionHandler(NSException *exception) {
/*
LOG関数は コンソールログを出力する関数 DEBUG時にとても有効です。
別エントリーで解説します。
*/
// 不正終了した箇所を示す スタックトレースをコンソールログに出力する
NSLog(@"stackSymbols:%@", [exception callStackSymbols]);
}
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
NSSetUncaughtExceptionHandler(&exceptionHandler);
return YES;
}
More than 3 years have passed since last update.
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme