Wrong height for UINavigationBar embedded in a child view controller
| Originator: | AdityaVKD | ||
| Number: | rdar://15893239 | Date Originated: | 24-Jan-2014 00:10 AM |
| Status: | Open | Resolved: | No |
| Product: | iOS SDK | Product Version: | iOS 7.0.3 |
| Classification: | Reproducible: | Yes |
Summary:
When a UINavigationController is a child view controller, and is presented via a custom animation, the navigation bar wrongly assumes the height of 44pt, hence causing the status bar to overlap with it, even though it should be 64pt. The animation is like the weather app on iOS 7.
However, when the child view is placed directly at the required position (without any animations), the navigation bar's height is correctly set to 64pt.
Steps to Reproduce:
1. Set a UINavigationController as the child view controller
2. Set it's frame to [[UIScreen mainScreen] bounds]
3. Add as subview to a view (call it A) in the hierarchy of the parent's view
4. Animate A to fill the parent view controller's view
Expected Results:
The UINavigationController's view is presented with a correctly sized navigation bar.
Actual Results:
If view A's origin is not {0, 0}, and has to be animated to there, the navigation bar is given a height of only 44px.
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!