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?


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.

| improve this answer | |

You can use CFGetRetainCount to see the retain count:

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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