automaticallyAdjustsScrollViewInsets doesn't change insets on iOS 9

Originator:johnofaustin
Number:rdar://22106545 Date Originated:August 1, 2015
Status:Closed Resolved:Yes
Product:iOS SDK Product Version:iOS 9 beta 4
Classification: Reproducible:yes
 
Summary:
On iOS 8, it was possible to layout a UITableView in code so that it would fill the screen, including under a UINavigatonBar. Unless you set the automaticallyAdjustsScrollViewInsets property of the UIViewController otherwise, the insets on the tableview were changed so that content would not appear below the navigation bar until the tableview was scrolled up.

In iOS 9, that functionality still appears to work when using storyboards, but it no longer works when adding the table view as a subview and applying constraints to it in code.

Steps to Reproduce:
1. Run the enclosed project on an iOS 8 device. Hit the plus sign to add content to the table view. Note that the content appears immediately below the navigation bar.
2. Run the same enclosed project on an iOS 9 beta 4 device. Hit the plus sign to add content to the table view. Note that the content is hidden by the navigation bar.

Expected Results:
I would expect the behavior to be the same on both iOS 8 and iOS 9

Actual Results:
On iOS 9, the content in the tableview are not offset by the height of the navigation bar.

Version:
iOS 9.0 (13A4305g)

Notes:
I left a second storyboard with the TableView laid out there so it is easy to see that it works on iOS 9.

Configuration:
iPod touch, 5th generation running iOS 9; verified correct behavior on an iPhone 5s running iOS 8.4

Attachments:
'TableViewTest.zip', 'iOS 8.4 - visible content.png' and 'iOS 9.0 beta 4 - content hidden.png' were successfully uploaded.

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!