2
votes

I'm getting crazy in implementing a ScrollView within Storyboard. I have a container View and above it I've put a ScrollView higher than the View. The height of the View and the ScrollView is set through the SizeInspector (and not with scripting):

ViewScrollView

The problem is that I cannot drag a ScrollView on the workspace (as with InterfaceBuilder), but only within the View itself. So if my ScrollView is higher (644) than the container View (411), I cannot see the entire ScrollView and put above it my textfields.

How can I solve this problem? Any help is appreciated!

Thanks in advance, yassa

2

2 Answers

2
votes

I think you want to set the conentSize height to 644. The iPhone screen is 480, so you can't display anything larger, but the content size can be bigger, so it will scroll. Something like this...

scrollView.contentSize = CGSizeMake(320, 640);
0
votes

See my answer on Designing inside a scrollview in xcode 4.2 with storyboards.