项目中一个类A遵守了某个协议,此协议中有一个delegate属性,是这样定义的:
@property (weak, nonatomic) id delegate;
如果类A中没有针对这个delegate进行处理,就会显示警告: auto property synthesis will not synthesize property 'delegate'.
解决办法目前好像是在类A中也增加这个属性定义:
@property (weak, nonatomic) id delegate;
参考: