-
Notifications
You must be signed in to change notification settings - Fork 0
What We Protect
LinHuijie edited this page Jan 9, 2019
·
13 revisions
- PYACrashTypeUnrecognizedSelector
- PYACrashTypeKVO
- PYACrashTypeTimer
- PYACrashTypeNotification
- PYACrashTypeContainer
- PYACrashTypeString
PYAegis protect your project not crash when exception for unrecognized selector
Note: PYAegis will ignore to handle if the subclass has overrirde forwardInvocation:
PYAegis protect for KVO in below situation:
- Duplicate add the observer
- Remove unregistered observer
- Auto
removeObserver
when observer has been release
PYAegis auto invalidate
and set to nil
for NSTimer
instance, when the target on the timer has released.
PYAegis auto removeObserver
when target has dealloc
for NSNotification
.
PYACrashType | Protect Class Name |
---|---|
PYACrashTypeContainer | NSArray |
PYACrashTypeContainer | NSMutableArray |
PYACrashTypeContainer | NSDictionary |
PYACrashTypeContainer | NSMutableDictionary |
PYACrashTypeContainer | NSSet |
PYACrashTypeContainer | NSMutableSet |
PYACrashTypeContainer | NSCountedSet |
PYACrashType | Protect Class Name |
---|---|
PYACrashTypeString | NSString |
PYACrashTypeString | NSMutableString |