我正在尝试在iOS 5中创建自己的自定义代理.
在iOS 4中,我通常使用’Assign’属性:
在iOS 4中,我通常使用’Assign’属性:
@property(nonatomic,assign) id<AnyProtocol> delegate;
现在,当我尝试合成时,我收到以下错误消息:
error: Automatic Reference Counting Issue: Existing ivar 'delegate' for unsafe_unretained property 'delegate' must be __unsafe_unretained
有任何想法吗 ?