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