Navigation bar inside popover doesn't resize when prompt is added or removed
| Originator: | frank | ||
| Number: | rdar://12741862 | Date Originated: | 2012-11-22 |
| Status: | Open | Resolved: | |
| Product: | iPad | Product Version: | 6.0 |
| Classification: | UI/Usability | Reproducible: | Always |
Summary: A popover controller hosting a navigation controller will not properly resize the navigation bar in response to a prompt being added or removed (either added/removed to an existing UINavigationItem or when different navigation items are added/removed from the stack. Steps to Reproduce: 1. Create a view controller which has no prompt set on its navigation item. 2. Create a navigation controller with the aforementioned view controller as its root view controller. 3. Create a popover controller with the navigation controller as its content view controller 4. Display the popover 5. Push a new view controller onto the navigation controller that *does* have a prompt set on its navigation item Expected Results: 6. The navigation bar should resize to accommodate the prompt Actual Results: 6. The navigation bar resizes, but is clipped by the popover's frame Regression: Scattered reports say this worked in iOS 3.2. It is not working in iOS 5.0 and 6.0. Notes: A similar but less severe issue occurs when the root view controller has a prompt on its navigation item but a view controller without a prompt is pushed. In that case the navigation bar area remains too large for the prompt-less navigation bar. A project is attached that exhibits the bug. Build and run, tap the "Display Popover" button, and then tap the "Push Child" button to demonstrate the bug (repeatedly tapping it will alternate between a prompt and no prompt).
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!