How to write a macro for checking strongSelf in Objective-C/c++

前端 未结 0 723
北荒
北荒 2021-02-13 07:31

I have a lot of this in my work codebase:

  __typeof(self) __weak weakSelf = self;
  dispatch_async(_queue, ^{
    auto strongSelf = weakSelf;
    if (!strongSelf         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题