Skip to content

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

@yangguanghei

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions