title: Object allocations and their release
body: <p>What i understood about object allocations and its release in objective is ..this..
  if suppose i allocated one object with alloc init then i need to release it after its last reference .
  Like this way....</p>
  
  <pre><code> MyViewController *myView=[MyViewController alloc ]init];
   [self.view presentModalViewController myView animated:YES];
    [myView release];
  </code></pre>
  
  <p>However if suppose i need    NSMutableArray . 
       and i set its as</p>
  
  <pre><code>  @property(nonatomic, retain)NSMutableArray *myArr; 
  </code></pre>
  
  <p>and need this array through out my viewcontroller means for instance say ....  view has uitableview and its data source is this array (myArr).</p>
  
  <p>And app is having its local copy of data storage through Sqlite3 .</p>
  
  <p>so i m adding object to this array using select statemnt of sqlite 3 .</p>
  
  <p>And as i need this data each time viewappears so i allocated this myArr in viewDidAppear 
  as...</p>
  
  <pre><code>myArr=[NSMutableArray alloc]init];
  </code></pre>
  
  <p>and i need to add value to each cell of uitableview in cellForRowAtIndexPath () method .</p>
  
  <p>Means its las refernce is in cellForRowAtIndexPath() </p>
  
  <p>So my question is that where should i release this allocated object of myArr</p>
  
  <p>thnx in advnce</p>
  
  <p>Kind Regards 
  Pagggyyy</p>