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

willDealloc中延迟执行的GCD中对weak Self为什么要使用strongSelf? #133

Open
yangguanghei opened this issue Oct 31, 2022 · 0 comments

Comments

@yangguanghei
Copy link

  1. __strong id strongSelf = weakSelf;的意义是什么?
  2. __strong id strongSelf = weakSelf;和__strong typeof(weakSelf) self = weakSelf;还不太一样,后者在GCD之后对weakSelf解除强引用,前者在GCD之前就不对weakSelf进行强引用了。
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