bottomLayoutGuide returns incorrect value when tabbar is hidden but toolbar is showing
| Originator: | RichWChan | ||
| Number: | rdar://15184698 | Date Originated: | 09-Oct-2013 |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | iOS 7.0 (11A465) |
| Classification: | Serious Bug | Reproducible: | Always |
Summary: In cases where we have a UINavigationController within a UITabBarController, if the view controller pushed on the navigation controller has `hidesBottomBarWhenPushed` set (causing the tab bar to disappear) but sets toolbarHidden to NO on the UINavigationController, `bottomLayoutGuide` will return incorrect result -- the length will include the height of both the tab bar AND the toolbar. screenshot of a view controller that has 93 as the bottom layout guide despite there only being a toolbar in the bottom: https://www.dropbox.com/s/zlgxo71ut91k17x/Screenshot%202013-10-09%2002.03.09.png Steps to Reproduce: 1. Create a UITabBarController containing UINavigationController as one of the tabs 2. Push a view controller onto the UINavigationController, with hidesBottomBarWhenPushed set to YES 3. Sets toolbarItems on the view controller and call setToolbarHidden:NO on the navigation controller Expected Results: bottomLayoutGuide should only include the height of the toolbar Actual Results: The UI looks correct (tab bar is hidden and toolbar is flushed against the bottom), but bottomLayoutGuide returns a length that includes the tab bar height. Version: iOS 7.0 (11A465)
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!