Search code examples
iosautomatic-ref-countingreleaseretain

iOS ARC:What's the principle of xcode compiler to add retain and release to code under arc?


From iOS 5,Apple introduced ARC to replace MRC.When use MRC,the coder add retain and release for memory control.After use ARC the compiler will add retain and release for you.What's the principle of compiler to add retain and release for code? You can paste some link or write someting you want.Thank you!!!


Solution

  • Where retains and released are added are specified in the ARC specification, although it's kind of a technical read.