资源简介
通过【NSSetUncaughtExceptionHandler】机制捕获处理app的异常
代码片段和文件信息
//
// AppDelegate.m
// DemoExceptionHandler
//
// Created by chenzm on 2018/9/7.
// Copyright © 2018年 chenzm. All rights reserved.
//
#import “AppDelegate.h“
#import “UncaughtExceptionHandler.h“
@interface AppDelegate ()
@end
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[UncaughtExceptionHandler installUncaughtExceptionHandler:YES showAlert:YES];
return YES;
}
- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks disable timers and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
// Use this method to release shared resources save user data invalidate timers and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution this method is called instead of applicationWillTerminate: when the user quits.
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
- (void)applicationDidBecomeActive:(UIApplication *)application {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background optionally refresh the user interface.
}
- (void)applicationWillTerminate:(UIApplication *)application {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
@end
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2018-09-07 14:45 DemoExceptionHandler\
目录 0 2018-09-07 13:04 DemoExceptionHandler\DemoExceptionHandler\
文件 285 2018-09-07 11:12 DemoExceptionHandler\DemoExceptionHandler\AppDelegate.h
目录 0 2018-09-07 15:14 __MACOSX\
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\
文件 227 2018-09-07 11:12 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\._AppDelegate.h
目录 0 2018-09-07 11:12 DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\
目录 0 2018-09-07 11:12 DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\AppIcon.appiconset\
文件 1495 2018-09-07 11:12 DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\AppIcon.appiconset\Contents.json
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\AppIcon.appiconset\
文件 171 2018-09-07 11:12 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\Assets.xcassets\AppIcon.appiconset\._Contents.json
文件 1194 2018-09-07 13:04 DemoExceptionHandler\DemoExceptionHandler\ViewController.m
文件 176 2018-09-07 13:04 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\._ViewController.m
目录 0 2018-09-07 11:50 DemoExceptionHandler\DemoExceptionHandler\ba
文件 1564 2018-09-07 11:50 DemoExceptionHandler\DemoExceptionHandler\ba
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ba
文件 176 2018-09-07 11:50 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ba
文件 1565 2018-09-07 11:49 DemoExceptionHandler\DemoExceptionHandler\ba
文件 333 2018-09-07 11:49 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ba
文件 342 2018-09-07 11:12 DemoExceptionHandler\DemoExceptionHandler\main.m
文件 171 2018-09-07 11:12 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\._main.m
文件 2111 2018-09-07 11:29 DemoExceptionHandler\DemoExceptionHandler\AppDelegate.m
文件 176 2018-09-07 11:29 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\._AppDelegate.m
目录 0 2018-09-07 11:29 DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\
文件 869 2018-09-07 11:29 DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\UncaughtExceptionHandler.h
目录 0 2018-09-07 15:14 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\
文件 176 2018-09-07 11:29 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\._UncaughtExceptionHandler.h
文件 9064 2018-09-07 11:29 DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\UncaughtExceptionHandler.m
文件 333 2018-09-07 11:29 __MACOSX\DemoExceptionHandler\DemoExceptionHandler\ExceptionHandler\._UncaughtExceptionHandler.m
............此处省略133个文件信息
相关资源
- 现代信号处理练习-古典功率谱、现代
- 用Seismosignal进行地震波基线校准的方
- Mech Sys Signal Process(MSSP)参考文献输
- VESA Signal 1600 x 1200 @ 60 Hz timing.pdf
- 多种方法实现通信信号分类.tar.gz
- Qt5.9Creator自定义信号(SignalTest)
- Signal Change.zip
- 修改版实现进程的软中断通信。要求
- Qt程序crash信息的捕捉与跟踪Demo
- EN50129 Railway applications - Communication s
- CrashFinder
- Multifractal detrended cross-correlation analy
- Genome Wide Analysis of the Populus WRKY Trans
- Cloning and purifying of Soluble amyloid precu
- Impaired function of MSCs from ITP patients in
- .Net MVC5下SignalR简单web即时聊天小程度
- umcrashtool
- 友盟崩溃分析工具
- 实现手机扫码登录PC网站
- FC-FS-4 Fibre Channel Framing and Signaling -
- EEG signal processing 脑电信号处理方法算
评论
共有 条评论