Reputation: 3195
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):
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
Upvotes: 2
Views: 12060
Reputation: 9945
See my answer on Designing inside a scrollview in xcode 4.2 with storyboards.
Upvotes: 0
Reputation: 3619
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);
Upvotes: 2