title: Displaying Login View on app resume
body: <p>What is the best way to display a view (in my case a login screen) on app resume. From looking around, I've been playing with the <code>applicationDidBecomeActive</code> event in my AppDelegate, but I cannot seem to get my head around how to properly display a view from here.</p>
  
  <p>I've tried to grab the current window by using <code>self.window</code> and/or it's subviews, but from the AppDelegate <code>self.window</code> is nil.</p>
  
  <p>So far this application seems to be wired up correctly, but I am baffled by two things.</p>
  
  <p>A) why is self.window nil from within my AppDelegate's <code>applicationDidBecomeActive</code> event handler.</p>
  
  <p>B) what is the correct/normal way of display a login view (or the like) on application resume.</p>