Finding which object has a link to another object in iOS and ARC

I work in xcode and iOS, and I have an object that is not deleted, because some other object has a link to it, but I can not understand who. Using the tools, I see that it has a ref number of 1, but as far as I can tell by looking at my code, it should be zero.

I am running the Tools, and this is not perceived as a leak.

If there is a way in Tools (or in the debugger) to find out who else has the link?

+7
source share
2 answers

Maybe you should try to replace some strong links with weak ones and see if it persists.

0
source

I think we can not help you with this. You probably need to keep track of an object through its intended life cycle.

What you could try is a category for NSObject where you register every save and release. You can also put breakpoints in these methods, so you see on the stack (the way it was saved / released from).

0
source

All Articles