title: UIWindow's makeKeyAndVisible not playing nice with ARC
body: <p>I'm recreating some kind of <code>UIAlertView</code> specific to my app, so I'm subclassing <code>UIWindow</code> to do it. The window gets added to <code>[UIApplication sharedApplication].windows</code>, but is never actually shown. I trimmed it down to this small piece of code:</p>
  
  <pre><code>UIWindow *testWindow = [[UIWindow alloc] initWithFrame:self.view.bounds];
  testWindow.backgroundColor = [UIColor blueColor];
  [testWindow makeKeyAndVisible];
  </code></pre>
  
  <p>When I log <code>[UIApplication sharedApplication].windows</code>, I see: </p>
  
  <pre><code>"&lt;UIWindow: 0x83774f0; frame = (0 0; 320 480); opaque = NO; autoresize = RM+BM; layer = &lt;UIWindowLayer: 0x8377660&gt;&gt;",
  "&lt;UIWindow: 0x8382630; frame = (0 0; 300 400); layer = &lt;UIWindowLayer: 0xf573e60&gt;&gt;"
  </code></pre>
  
  <p>And yet that second window with a blue background color is nowehere to be seen. </p>
  
  <p><strong>UPDATE</strong>: this seems to be an issue only when ARC is enabled. I created 2 new "single view" projects, one with ARC enabled and the other with ARC disabled. Both are identical and I add the UIWindow code to <code>viewDidAppear:</code> of the main view controller. When I run the apps in the simulator, the blue window only shows up in the ARC-disabled project. It looks like ARC gets rid of my UIWindow too quickly and so it doesn't even have time to show up. Making it <code>__strong</code> didn't help. Still clueless... </p>