My isa-swizzling breaks KVO

前端 未结 1 1233
独厮守ぢ
独厮守ぢ 2020-12-17 02:49

I\'m trying to implement isa swizzling because I need some actions to happen in dealloc method of certain object. I\'m overriding - (Class)class; method to return original c

相关标签:
1条回答
  • 2020-12-17 03:12

    You should check out how Mike Ash handles this: https://github.com/mikeash/MAZeroingWeakRef

    Summary: handle swizzling a KVO-swizzled subclass differently--you'll have to patch the KVO methods in the KVO subclass...

    0 讨论(0)
提交回复
热议问题