title: Keyboard doesn't come up with multiple UIWindows
body: <p>I have created a loading UIWindow which I call and <code>makeKeyAndVisible</code> when I start loading. After I'm finished, I <code>makeKeyAndVisible</code> my main UIWindow. But my problem is after doing this, when I click on a text field, the keyboard doesn't come up. This is asked in <a href="https://stackoverflow.com/questions/13960410/cursor-is-blinking-in-uitextfield-but-keyboard-doesnt-appear">Cursor is blinking in UITextField but keyboard doesn&#39;t appear</a> but I can't find the right answer.</p>
  
  <p>EDIT: in UIView, when I click on the addressbar, keyboard does come up but I can't type. But in google's page, when I click on search text field, keyboard doesn't come up.</p>
  
  <pre><code>- (void)showLoading:(NSString*)text
  {
  loadingWindow = [[UIWindow alloc] init];
  [[UIApplication sharedApplication] beginIgnoringInteractionEvents];
  mainWindow = UIApplication.sharedApplication.keyWindow;    
  
  [loadingWindow setFrame:CGRectMake(0, 0, boundWidth, boundHeight)];
  [loadingWindow setRootViewController:[[UIViewController alloc] init]];
  [loadingWindow.rootViewController setView:[[UIView alloc] init]];
  [loadingWindow.rootViewController.view setFrame:loadingWindow.frame];
  
  [loadingWindow setHidden:NO];
  }
  
  - (void)hideLoading
  {
  [loadingWindow setHidden:YES];
  [loadingWindow removeFromSuperview];
  }
  </code></pre>