How can I create a Scroll View over the full width and height in different resolutions (for ex. iPhone 4, iPhone 6)?
What I try:
Select the Scroll View and use Autoresizing to scale it up:
This seems to work at first:
But xcode complains then about constrains errors:
And if I fix them the Scroll View loses its height and width:
What do I do wrong?
Any Anyif it is not.
Pinbutton located at bottom.
Add 4 Constraintsbutton at bottom in popup.
Resolve the Auto Layout issuebutton (last) located at bottom and select
Note: If you want to use
ScrollView with autolayout, you need to do some more work. for e.g. Don't put subviews directly into ScrollView. Put
ScrollView as container and put your all subview in it.
Follow this tutorial