I know the definition of unsafe_unretained
.
So i don\'t expect anyone to write its definition.
I want to know its use with example, and how it wor
Previously to ARC, one might specify a delegate or other reference-to-parent property as assign
to prevent retain cycles. With the introduction of ARC and the newer compilers you would instead use unsafe_unretained
.
So you use it any time you do not need ownership of the reference, and when you don't need or want to use the new weak
reference type (which nulls out the reference when it is deallocated).