Bottom layout guide is too long while pushing a view controller with the hidesBottomBarWhenPushed option

Originator:steipete
Number:rdar://20859260 Date Originated:07-May-2015 02:59 PM
Status:Open Resolved:
Product:iOS Product Version:8.3
Classification:UI/Usability Reproducible:Always
 
Summary:

When pushing a view controller with hidesBottomBarWhenPushed onto a view controller stack made up of a root UITabBarController and and a UINavigationController, the bottom layout guide for the pushed view controller stays set to the value representing the now hidden tabbar. This happens despite the transition never actually showing the tabbar on the pushed view (the tabbar gets overlaid by the pushed view). 

Steps to Reproduce:

Open the attached sample project and run it on an iPhone or iPad follow the on-screen instructions. Observe the red view on the pushed view controller. This view is anchored to the bottomLayoutGuide

Expected Results:

The red view would be positioned at the very bottom of the view even during the push transition.

Actual Results:

The red view is positioned as if it was above the tabbar, despite the fact the the tabbar is no longer visible. 

Regression:

iOS 8.3, iPhone, iPad and iOS simulator, happens on previous iOS 8 versions as well. Does not happen on iOS 7. 

Notes:

This is a duplicate of rdar://20854652 ViewController.m has some useful logging that you should be able to see in the console.

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!