void UncaughtExceptionHandler(NSException *exception)
{
//获取异常信息
NSArray *arr = [exception callStackSymbols];
NSString *reason = [exception reason];
}
NSSetUncaughtExceptionHandler(&UncaughtExceptionHandler);
void UncaughtExceptionHandler(NSException *exception)
{
//获取异常信息
NSArray *arr = [exception callStackSymbols];
NSString *reason = [exception reason];
}
NSSetUncaughtExceptionHandler(&UncaughtExceptionHandler);