Accessing topLayoutGuide / bottomLayoutGuide puts view controller's table view into bad state

Originator:me
Number:rdar://17290498 Date Originated:12-Jun-2014 11:58 AM
Status:Open Resolved:Duplicate/14795557 (Open/Closed)
Product:iOS SDK Product Version:iOS 7.1.1 [11D167]
Classification:UI/Usability Reproducible:Always
 
Reading the -topLayoutGuide and/or -bottomLayoutGuide property of a view controller whose view is a table view causes the table to snap to the top, and apparently have zero content size.

See attached recording and sample project.

Google indicated this may be a duplicate of 16205435.



Steps to Reproduce:

Have a view controller managing a table view.
Scroll down.
Call -topLayoutGuide.


Expected Results:

No visual change.


Actual results:

Table jumps to top of the scrollable area, and is no longer scrollable.


Configuration:

iOS Simulator - iPhone Retina (4-inch)

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!