MLeaksFinder icon indicating copy to clipboard operation
MLeaksFinder copied to clipboard

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

Open yangguanghei opened this issue 3 years ago • 0 comments

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

yangguanghei avatar Oct 31 '22 03:10 yangguanghei