id delegate;
@property (nonatomic, assign) id delegate;
I got this error; Existing ivar 'delegate' for unsafe_unretained property 'delegate' must be __unsafe_unretained
I tried changing the code to the following but i keep getting the same error.
__weak id delegate;
@property (nonatomic,weak) id delegate;
When i change it to strong it works, But i don’t think that this is the correct way
id delegate;
@property (nonatomic,strong) id delegate;
Try making the ivar unsafe-unretained as the compiler suggested.
Or just don’t declare the ivar, let the system generate it in @synthesize.