title: Object allocate and init in Objective C
body: <p>What is the difference between the following 2 ways to allocate and init an object?</p>
  
  <pre><code>AController *tempAController = [[AController alloc] init];
  self.aController = tempAController;
  [tempAController release];
  </code></pre>
  
  <p>and</p>
  
  <pre><code>self.aController= [[AController alloc] init];
  </code></pre>
  
  <p>Most of the apple example use the first method. Why would you allocate, init and object and then release immediately?</p>