-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
自动移除订阅 #4
Comments
理论上可以通过 Category 在所有 |
是的,修改方案有多种,我想应该放到GLPubSub中统一处理,你看下一下方法是否可行?
|
用上面方法实现存在,通知一直没有被移除,执行block不在调用,在Category中调用主动 unsubscribeAll会更好,改方法有打算做Pod库的更新吗? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
在使用GLPubSub时,如果类A通过block订阅一个通知后,如果不在dealloc方法移除,这个block将会一直存在;这样将会导致对象被释放,当有对应的通知时还是会执行block,那么就必须在dealloc方法中调用,该操作是否可以放在GLPubSub中进行统一处理呢?
The text was updated successfully, but these errors were encountered: