title: Issues With App Delegate it frees the variable
body: <p><strong>I'm extremely new to ios.</strong></p>
  
  <p>I'm trying to learn appDelegate method to pass data in my application. When I'm setting the value for the variable (appDelegate variable) it does set it @ that point of time
  but after 2 steps it shows it as out of scope.
  While retrieving it when I do this</p>
  
  <pre><code>myAppDelegate *appDelegate = (myAppDelegate *)[[UIApplication sharedApplication] delegate];    
      myClass *my = [appDelegate.myclass objectAtIndex:0];
  </code></pre>
  
  <p>It say  to a few of my property of myClass.(checked using a breakpoint &amp; the ramdom like sometimes it first and second next time it is the third one).</p>
  
  <p>Does anyone know what I'm missing ???
  Thank you for your help ! :)</p>