Skip to content
This repository has been archived by the owner on Jun 2, 2018. It is now read-only.

The root cause of "KVO blocks API causing KVO crashes on object dealloc" #214

Closed
peiyun007 opened this issue Feb 27, 2014 · 1 comment
Closed

Comments

@peiyun007
Copy link

I came across the same problem as https://github.com/pandamonia/BlocksKit/issues/200.
PS:I run my simulator in ios 7
Finally,I found the root cause of this problem.Below is the cause:

  • (NSMapTable *)bk_observersMapTable this method will be called only one time every time you start the app.So BlocksKit will swizzle the dealloc method of instances for the first class,for example ABCViewController.For the other class,BlocksKit will not swizzle the dealloc method any more.So it will lead to leak even crash.You can create a breakpoint in the bk_observersMapTable to find the root cause.
@peiyun007
Copy link
Author

I'm sorry,i was wrong.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant