NavigationController from NIB produces sticky gray empty status bar on rotation

Number:rdar://8313852 Date Originated:16-Aug-2010 06:40 PM
Status:Open Resolved:
Product:iPad SDK Product Version:3.2
Classification:Serious Bug Reproducible:Always
16-Aug-2010 06:40 PM Oliver Drobnik KG:

If you load a navigation controller from MainWindow.xib, but add the first view controller in appDidFinishLaunching, then there is a problem on rotation. A gray empty status bar appears underneath the regular status bar which cannot be eliminated.

Steps to Reproduce:

Create a Navigation based project.
Set status bar to be initially hidden.
Set navigation controller to want full screen and have nav bar hidden
Implement a tap method in the view controller to hide and show the status bar
Move the view controller outside of the navigation controller in the IB
Add a line to app delegate to push the now separate view controller onto the navigation controller.
Start the app, rotate once sideways with shown status bar
tap to hide the status bar

Expected Results:

No extra gray status bar.

Actual Results:

A sticky gray status bar appears underneath the disappearing regular status bar.

I'm attaching a project to demonstrate the behavior. Plus a screenshot.

The behavior is inconsistent with creating a navigation controller in code. There no extra status bar appears.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!