https://github.com/meniny/mxcrashhandler-in-objective-c
An easy-to-use class to handle crash on iOS.
https://github.com/meniny/mxcrashhandler-in-objective-c
crash exception ios
Last synced: over 1 year ago
JSON representation
An easy-to-use class to handle crash on iOS.
- Host: GitHub
- URL: https://github.com/meniny/mxcrashhandler-in-objective-c
- Owner: Meniny
- License: mit
- Created: 2016-07-09T09:07:51.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-07-28T07:06:45.000Z (almost 9 years ago)
- Last Synced: 2025-02-21T06:01:44.775Z (over 1 year ago)
- Topics: crash, exception, ios
- Language: Objective-C
- Size: 25.4 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MXCrashHandler-in-Objective-C
`MXCrashHandler` is an easy-to-use class to handle crash on iOS.
## Installation with CocoaPods
```
pod 'MXCrashHandler'
```
## Usage
Add the code blew to `AppDelegate.m`:
```
#import "MXCrashHandler.h"
```
```
@interface AppDelegate ()
```
```
[MXCrashHandler installWithThread:[NSThread currentThread]];
[[MXCrashHandler sharedHandler] setDelegate:self];
```
```
- (void)crashHandler:(MXCrashHandler *)handler didReceiveException:(NSException *)exception {
NSLog(@"%@", exception);
}
```
## Swift Version
See [OhCrap](https://github.com/Meniny/OhCrap)