Skip to content

What We Protect

LinHuijie edited this page Jan 9, 2019 · 13 revisions

PYACrashType

PYACrashTypeUnrecognizedSelector

PYAegis protect your project not crash when exception for unrecognized selector
Note: PYAegis will ignore to handle if the subclass has overrirde forwardInvocation:

PYACrashTypeKVO

PYAegis protect for KVO in below situation:

  • Duplicate add the observer
  • Remove unregistered observer
  • Auto removeObserver when observer has been release

PYACrashTypeTimer

PYAegis auto invalidate and set to nil for NSTimer instance, when the target on the timer has released.

PYACrashTypeNotification

PYAegis auto removeObserver when target has dealloc for NSNotification.

PYACrashTypeContainer

PYACrashType Protect Class Name
PYACrashTypeContainer NSArray
PYACrashTypeContainer NSMutableArray
PYACrashTypeContainer NSDictionary
PYACrashTypeContainer NSMutableDictionary
PYACrashTypeContainer NSSet
PYACrashTypeContainer NSMutableSet
PYACrashTypeContainer NSCountedSet

PYACrashTypeString

PYACrashType Protect Class Name
PYACrashTypeString NSString
PYACrashTypeString NSMutableString