UIScrollView with auto layout needs explicit contentSize in iOS 8

Originator:dkasper
Number:rdar://17363789 Date Originated:18-Jun-2014
Status:Open Resolved:
Product:iOS SDK Product Version:iOS 8.0 Beta 2
Classification:Other Bug Reproducible:Always
 
Summary:
Following the notes for the pure auto layout approach in https://developer.apple.com/library/ios/technotes/tn2154/_index.html to set up a UIScrollView works in iOS 7 but not iOS 8. Setting the content size explicitly fixes the issue, but should be unnecessary.

Demo Github Project: https://github.com/dkasper/ScrollViewBug

Steps to Reproduce:
1. Create UIScrollView
2. Add views and setup constraints such that the UIScrollView should scroll. Make sure there are constraints for top/left/right/bottom.

See https://github.com/dkasper/ScrollViewBug for example

Expected Results:
UIScrollView will allow scrolling to view all the content.

Actual Results:
UIScrollView doesn't scroll. With iOS 7 works as expected.

Version:
iOS 8.0 Beta 2 (12A4297e)

Notes:
Setting contentSize explicitly on the scrollview is a workaround that fixes the issue.

Configuration:
iOS 8.0 Simulator, iPad Air A1474

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!