发布于 2014-01-17 01:16:25
显示的代码看起来很好。您的代码中可能有其他地方的错误。
我的猜测是,有人在其中一个头文件中写入了这个文件,其中包括:
#define weak assign这会产生以下结果:
% cat test.m
#define weak assign
id __weak x;
% clang -fobjc-arc test.m
test.m:2:4: warning: 'objc_ownership' attribute argument not supported: 'assign'
[-Wignored-attributes]发布于 2014-01-17 00:03:28
为什么不直接这么做:
__weak typeof(self) weakSelf = self;https://stackoverflow.com/questions/21175428
复制相似问题