How can I check if an unsafe_unretained property isn’t point to some garbage memory? I am not using ARC. I am implementing delegate so I have to use unsafe_unretained to avoid retain cycles.
How can I check if an unsafe_unretained property isn’t point to some garbage memory?
Share
If you are not using ARC just use assign. The stale pointer problem is a coding issue, you just need to closely maintain the delegate pointer.