手动崩溃统计
来源:互联网 发布:新的网络安全法 编辑:程序博客网 时间:2024/06/05 12:39
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
//捕获异常操作
NSSetUncaughtExceptionHandler(handle);
return YES;
}
//异常回调
void handle(NSException *exception){
NSMutableDictionary *dict = [NSMutableDictionarydictionary];
NSString *name = exception.name;
NSString *reason = exception.reason;
NSArray *methodInfo = exception.callStackSymbols;
dict[@"崩溃名称"]= name;
dict[@"崩溃原因"]=reason;
dict[@"崩溃方法"]=methodInfo;
NSString *document = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES)lastObject]stringByAppendingPathComponent:@"crashNote.plist"];
[dict writeToFile:document atomically:YES];
[[NSRunLoopcurrentRunLoop]addPort:[NSPortport] forMode:NSRunLoopCommonModes];
[[NSRunLoopcurrentRunLoop]run];
}
- 手动崩溃统计
- 崩溃统计
- 从键盘手动强制崩溃
- 【explorer崩溃】手动修复指南
- UM统计崩溃信息处理
- Android实现崩溃统计(UncaughtExceptionHandler)
- iOS 崩溃统计工具-Crashlytics
- 关于手动修复Linux引导崩溃
- Oracle 手动搜集统计信息
- iOS崩溃统计(程序员每日必备)
- 集成Fabric的Crashlytics(崩溃统计)
- 关于手动添加一个viewController引起的崩溃
- OC手动管理内存时出现程序崩溃
- iOS闪退(崩溃)手动再符号化解析
- Android崩溃日志手动捕捉工具类 CrashHandler
- 接口返回null崩溃(百度移动统计错误)
- VBS-QTP自动统计客户端崩溃次数-测试需求
- iOS 如何调试第三方统计到的崩溃报告
- const用法
- 杭电1874-畅通工程续
- Activiti 流程部署方式 activi 动态部署(高级源码篇)
- tools:context=".MainActivity"
- 有关jquery与DOM节点操作方法和属性记录
- 手动崩溃统计
- 虫洞_poj3259_bellman_ford
- Spring MVC > ContextLoaderListener
- 演示控制客户端浏览器的缓存时间
- OpenGL ES像素着色器教程
- Soket服务端多任务与阻塞超时
- ssl2206 最小花费
- hiho练习“Drinking Game"二分搜索
- mysql二进制日志文件中的事件