Skip to content

一个iOS崩溃异常的捕捉处理源代码,帮助更好的调试程序

Notifications You must be signed in to change notification settings

easonoutlook/UncaughtExceptionHandler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

让程序从容的崩溃
1、首先需要在appDelegate中使用InstallUncaughtExceptionHandler()用于监听
2、添加UncaughtExceptionHandler这个类

iOS SDK提供的函数是NSSetUncaughtExceptionHandler来进行异常处理。但是无法处理内存访问错误、重复释放等错误,因为这些错误发送的SIGNAL。所以需要处理这些SIGNAL

About

一个iOS崩溃异常的捕捉处理源代码,帮助更好的调试程序

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published