title: iOS – AppDelegate as instance variable?
body: <p>Is it okay to have the AppDelegate as an instance variable in a <code>UIViewController</code>? Like <code>@property (nonatomic, weak) AppDelegate *appDelegate;</code></p>
  
  <p>Why I'm asking is because I need to access it quite often so instead of doing:</p>
  
  <pre><code>AppDelegate *appDelegate = (AppDelegate *) [[UIApplication sharedApplication] delegate]; 
  
  [appDelegate doSomething]; 
  </code></pre>
  
  <p>I could do: </p>
  
  <p><code>[appDelegate doSomething]</code></p>