iOS 错误

void uncaughtExceptionHandler(NSException * exception) {

    NSLog(@"CRASH: %@", exception);

    NSLog(@"Stack Trace: %@",[exception callStackSymbols]);

}

 

int main(int argc, char * argv[]) {

    @autoreleasepool {

        NSSetUncaughtExceptionHandler(&uncaughtExceptionHandler);

        

        return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));

    }

}

posted @ 2015-08-25 11:56  金正嗯  阅读(100)  评论(0编辑  收藏  举报