title: How to access app delegate fields within other classes?
body: <p>in one of my controllers I want to access fields of my app delegate. So to retrieve app delegate I use the following code:</p>
  
  <pre><code>[[UIApplication sharedApplication] delegate];
  </code></pre>
  
  <p>But when I try to cast it to my delegate's name I get the error that the name is undeclared. </p>
  
  <p>Do I have to import the header file of the app delegate in the class where I want to access the fields?</p>