Why we use app delegate in our application
<p>I am new in iphone development and i needed a array which i use to access in different class so my senior told me that you should declare in App delegate and access it another class in which it require, so i wrote line for that</p>

<pre><code>MyAppAppDelegate * appObject = 
                 (MyAppAppDelegate*)[[UIApplication sharedApplication]delegate];
</code></pre>

<p>I done my task successfully but i couldn't get it 100%. Someone tell that why we use this and in what exactly situation in which we've to use this?</p>
