title: Programatically Hiding Status Bar When Adding New UIWindow?
body: <p>I'm currently adding a new UIWindow to my app when displaying my own custom alert.</p>
  
  <p>Before adding this UIWindow my app had the status bar hidden, but now it is visible. How can I hide the status bar programatically in this new window. I've tried everything but it doesn't work.</p>
  
  <p>This is how I add my UIWindow:</p>
  
  <pre><code>notificationWindow = [[UIWindow alloc] initWithFrame: CGRectMake(0, 0, 1.0, 1.0)];
  
  notificationWindow.backgroundColor = [UIColor clearColor]; // your color if needed
  notificationWindow.userInteractionEnabled = NO; // if needed
  
  // IMPORTANT PART!
  notificationWindow.windowLevel = UIWindowLevelAlert + 1;
  
  notificationWindow.rootViewController = [UIViewController new];
  notificationWindow.hidden = NO; // This is also important!
  [notificationWindow addSubview:confettiView];
  </code></pre>