Unable to set UIScrollView contentSize value via Interface Builder

Originator:tonyarnold
Number:rdar://10204776 Date Originated:29-Sep-2011 11:24 AM
Status:Duplicate/7400756 Resolved:
Product:Developer Tools Product Version:4.1
Classification:Enhancement Reproducible:Always
 
When setting up a UIScrollView instance in Interface Builder, it should be possible to completely configure the control — currently, the contentSize property is not configurable, and placing subviews inside the scroll view does not alter the contentSize either. 

This means that it is necessary to configure the control using code every time.

Steps to Reproduce:

1. Drag a UIScrollView to your Interface Builder canvas;
2. Insert subviews inside the scroll view, with at least one of them partially or fully outside the bounds of the original scrollview;
3. Simulate the document.

Expected Results:

The scroll view should provide a value inspector to modify the contentSize property, or automatically adjust the contentSize based upon the scroll view's subviews.

Actual Results:

The views outside the scroll view's bounds are not shown, and the scrolling controls are not available, as the contentSize is clipped to the view's bounds size by default.

Regression:

No, this behaviour has been consistent in previous releases of Xcode 4.

Notes:

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!