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

前端 未结 0 2004
天涯浪人
天涯浪人 2021-02-13 07:55

I have a lot of this in my work codebase:

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


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