阅读背景:

紧凑禁用自引用块的arc-retain-cycles警告

来源:互联网 

I'm writing an API that involves event handling, and I'd like to be able to use blocks for the handlers. The callbacks will often want to access or modify self. In ARC mode, Clang warns that blocks referencing self are likely to create a retain cycle, which seems like a helpful warning that I want to keep on in general.I'm writing an API that involves event handling




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: