Either declare the property as weak
, if you want it to automatically be set to nil
when the object dies, or as strong
, if you want to keep the object alive (strong
is probably what you want).
unsafe_unretained
will result in a dangling pointer if the object is deallocated (that's why its called "unsafe"..)