項目中一個類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