title: About memory management in Objective-C or iOS
body: <p>Hello every one this is my <code>first post</code> in this site and I am a newbie to iOS. I know that it's for programming site, but I don't have access to any iOS experts, resources to understand about my doubt, so please dont mark me as <code>negative</code>, try to solve my problem. Here is my question:</p>
  
  <p>Some days ago I went for formal interview in our college for iOS interview, and they asked me:</p>
  
  <ol>
  <li><code>what is memory management in Objective-C or iOS?</code></li>
  </ol>
  
  <p><strong>i said:</strong>  Memory mangement are used the retain count way in which memory is managed in Objective-C. When we create a object it has retain count of 1. When we send an object a retain message, its retain count is incrementedby 1. And when we send release message retain count is decreased by 1.</p>
  
  <ol start="2">
  <li><code>what type of memory management are using like MRC/ ARC??</code></li>
  </ol>
  
  <p><strong>i said :</strong>  For MRC it we alloc, retain it have to do release/autorelease for ARC we need to release / autorelease.</p>
  
  <pre><code>My question is:
  
  
  1. Actually is my first answer correct about memory management?
  
  2. From which version of iOS SDK are using ARC, MRC?
  </code></pre>
  
  <p>please kindly solve my confusion. It will help me to know what is what?</p>
  
  <p>Thanks.</p>