Possible Duplicate:
using ARC, lifetime qualifier assign and unsafe_unretained
What's the difference between the two?
@property(unsafe_unretained) MyClass *delegate;
@property(assign) MyClass *delegate;
Both are non-zeroing weak references, right? So is there any reason why I should write the longer and harder to read unsafe_unretained
instead of assign
?
Note: I know there is weak
which is a zeroing reference. But it's only iOS >= 5.