UIWindow view doesn't resize properly after hiding status bar until after rotate
| Originator: | pburleson | ||
| Number: | rdar://10480970 | Date Originated: | 22-Nov-2011 10:33 AM |
| Status: | Open | Resolved: | |
| Product: | iPad SDK | Product Version: | 5.0 (9A334) |
| Classification: | Other Bug | Reproducible: | Always |
Summary: When hiding and showing the status bar, a view won't auto-resize to fit the new area by removing and adding it back to the window until the window has been rotated at least once. Attached is a sample project that demonstrates the issue. Run it and tap the button on the screen. If you haven't rotated, the view doesn't resize. If you rotate, and then tap the button, the view will resize correctly. Steps to Reproduce: 1. Hide status bar 2. Remove current view from key window 3. Add view back to key Window to force resize Expected Results: The view now fills the the entire screen even if the device hasn't been rotated. Actual Results: The view doesn't resize leaving the area previously occupied by the status bar *unless* the device has been rotated at least once. Regression: None that I'm aware of Notes: The remove view/add view was something I discovered while looking around for how to make the view resize. Previously I had tried to move and resize the UIWindow when hiding and showing the status bar. The problem here is that after rotation, the window is now moved an additional amount equal to the width of the status bar.
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com 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!
Sample Project
You can download the sample project here: http://cl.ly/1M431k1c2W2E093p3d2a