id delegate;
@property (nonatomic, assign) id delegate;
我得到了這個錯誤; Existing ivar 'delegate' for unsafe_unretained property 'delegate' must be __unsafe_unretained
獲取unsafe_unretained屬性錯誤
我試着改變下面的代碼,但我不斷收到相同的錯誤。
__weak id delegate;
@property (nonatomic,weak) id delegate;
當我將其更改爲強它的工作原理,但我不認爲這是正確的做法
id delegate;
@property (nonatomic,strong) id delegate;
是我做到了。我正在嘗試iOS 4.3和更高版本 – Illep 2012-01-15 16:23:21