Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I understand correctly, all ARC does is automatically add memory-management statements such as retain and autorelease in the proper places in a program. Is there any way to see all the memory-management statements that ARC automatically adds to a program?

share|improve this question

In Xcode's assistant editor, choose to view the Assembly for the file you're working on. You should see calls to functions like objc_retain and similar; these are the functions inserted by the compiler to support ARC.

share|improve this answer

You can use CFGetRetainCount to see the retain count:

CFGetRetainCount( (__bridge void*) object );
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.