Setting preferredContentSize doesn't always correctly update the size if navigationBarHidden changes.

Originator:steipete
Number:rdar://19175472 Date Originated:08-Dec-2014 03:33 PM
Status:Open Resolved:
Product:iOS Product Version:iOS 8.1.1
Classification:UI/Usability Reproducible:Always
 
Summary:
Setting preferredContentSize doesn't always correctly update the size if navigationBarHidden changes.

Steps to Reproduce:
Open example. Observe that the popover is too large; it should be exactly the size to fit 5 rows, but there is one extra, which is the space for the hidden top toolbar.

Expected Results:
Should be sized correctly.

Actual Results:
Popover size is too large.

Regression:
Doesn’t work on iOS 7 either.

Notes:
Not sure if I’m doing something wrong here, when I change the call order I can make it work, however the call order here should not be relevant. It looks like changing preferredContentSize doesn’t propagate upwards (doesn’t call _preferredContentSizeDidChangeForChildViewController: if it’s the same value.)

Comments

Still happening with iOS 10.0.1 GM.

By steipete at Sept. 16, 2016, 2 p.m. (reply...)

Example: http://cl.ly/0w3Z2E0o3D0t


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!