title: Multiple UIWindows and which one controls the status bar orientation
body: <p>If you have an app with one <code>UIWindow</code>, my understanding is that the <code>rootViewController</code> of that <code>UIWindow</code> will be the <code>UIViewController</code> that receives the rotation/orientation methods like <code>shouldAutoRotate</code>, <code>shouldAutoRotateToInterfaceOrientation</code>, etc. </p>
  
  <p>I'm writing an external library and there is an instance where I create another <code>UIWindow</code> object, set its <code>rootViewController</code>, and make it key and visible.  It seems like the <code>rootViewController</code> of the original window is the one that still gets sent the rotation methods and not the new one. </p>
  
  <p>I want to be able to control whether the application can rotate or not while the new window is visible, but it seems like the original window's <code>rootViewController</code> still has control over that.  I've tried setting the original window's <code>rootViewController</code> to a <code>rootViewController</code> that prohibits rotation of the screen while my new window is visible and resetting the original window's <code>rootViewController</code> to its original <code>rootViewController</code> but that causes some problems of its own.  </p>
  
  <p>Does anyone know how to make a certain <code>UIViewController</code> the one in charge of app rotation?</p>