码迷,mamicode.com
首页 > 移动开发 > 详细

iOS 错误

时间:2015-08-25 14:09:35      阅读:136      评论:0      收藏:0      [点我收藏+]

标签:

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]));

    }

}

iOS 错误

标签:

原文地址:http://www.cnblogs.com/jinzhengen/p/4757051.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!