iPhone - Transparent status bar does not resize subviews
<p>I have two viewcontrollers in my app, one of them shows an opaque status bar (default) while the other shows a black translucent status bar.</p>

<p>When I come from the first view controller to the other, in viewWillDisappear of controller1, I specify this</p>

<pre><code>[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent animated:YES];
</code></pre>

<p>The autoresizing mask of controller2 is set as follows</p>

<pre><code>self.view.autoresizesSubviews = YES;
self.view.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;
</code></pre>

<p>But even then, when controller2's view appears, the view begins from right below the status bar. I see a white space below the status bar. When the status bar is hidden after 3 seconds, the view adjusts and covers the white space. When the view is again tapped to show the status bar, the view shifts down to leave white space below the status bar.</p>

<p>Can someone please let me know how to resolve this.</p>

<p>Thanks.</p>

<p><strong>More Info</strong></p>

<p>This is only a problem with 3.x. With 2.2.1 the same code works fine and the view starts from behind the status bar.</p>

<p>Adding images to show what I mean
<img src="http://img64.imageshack.us/img64/4008/withstatus.png" alt="alt text"></p>

<p><img src="http://img63.imageshack.us/img63/6281/withoutstatus.png" alt="alt text"></p>
