title: Getting a reference to the UIApplication delegate
body: <p>I'm writing my first iPhone application and I'm having trouble switching views.  I have 2 views and a reference to each in the <code>AppDelegate</code> (an instance of <code>UIApplicationDelegate</code>).  I create instances of both in the <code>applicationDidFinishLaunching</code> and immediately show the first view.  This works fine.  </p>
  
  <p>The problem is the reference to the other view is in the <strong>AppDelegate</strong> and I can't figure out how to get a reference to it so I can switch to the other view.  Is there a way to get a reference to the main <code>UIApplication</code> or <code>UIApplicationDelegate</code> objects?</p>