Skip to content
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

有一条循环引用的问题请教-Block #38

Open
dengbin9009 opened this issue Mar 7, 2017 · 0 comments
Open

有一条循环引用的问题请教-Block #38

dengbin9009 opened this issue Mar 7, 2017 · 0 comments

Comments

@dengbin9009
Copy link

dengbin9009 commented Mar 7, 2017

你好,我在看你的demo中文件T1StatusCell中的T1StatusMediaView类的是够发现你在Block中是先对self进行weak处理 ,然后在block中进行strong处理,请问这样有什么好处吗,为什么不直接使用weakSelf呢?
另外,我看你在block中最后还是使用self,是因为你把self重新赋值了?这样做会有什么好处吗?
能帮我讲解下原因或者推荐一篇相关的文章学习一下吗?万分感谢! @ibireme
123

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

No branches or pull requests

1 participant