对异常appdelegate可能里面要加的

来源:互联网 发布:超声波传感器淘宝 编辑:程序博客网 时间:2024/05/16 00:49

 NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);

 void uncaughtExceptionHandler(NSException *exception)


{
    NSLog(@"CRASH: %@", exception);
    NSLog(@"Stack Trace: %@", [exception callStackSymbols]);
    // Internal error reporting
}


0 0