Avoiding the “capturing self strongly in this block is likely to lead to a retain cycle” message

后端 未结 3 970
情书的邮戳
情书的邮戳 2021-02-03 11:00

every time I have to use a global var or property inside a block like this:

self.save = ^(){
  if (isItSaving == NO) {
      [self saveMyFile];
  }
};

3条回答
提交回复
热议问题