UIPopoverController doesn't resize correctly when used with NavigationController

Originator:phillips1988
Number:rdar://13891323 Date Originated:14-may-2013
Status:Open Resolved:
Product:iPad SDK Product Version:6.0
Classification:UI/Usability Reproducible:Always
 
Summary: 

Using a navigation inside a popover controller, when I am pushing and popping view controllers, after the initial root view controller, the popover controller doesn't resize the height correctly. 

Steps to Reproduce: 

See bug demo project at https://bitbucket.org/danielphillips/uipopovercontroller-resize-bug 

Using a UINavigationController within a UIPopoverController, where all the UIViewController subclasses used in the navigation stack have a desired value set for contentSizeForViewInPopover. The initial root view controller of the UINavigationController appears correctly, but subsequent pushing and popping in the navigation stack never restore the correct height for smaller view controllers. 

Expected Results:

When pushing and popping view controllers on the UINavigationController within a UIPopoverController, the expected result is a resize of the popover controller for each view controller being displayed.

Actual Results:

The popover controller ignores the height resize after pushing a view controller. Popping and pushing still animates a resize of the width as expected, but not the height.

Regression:

Appears to have always been like this since iOS 3.2.

Notes:

Open git repo of a bug demo can be found here: https://bitbucket.org/danielphillips/uipopovercontroller-resize-bug

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!