Search code examples
iosswiftxcodeuiscrollviewinterface-builder

How to design a very long Scrollview with XCode's Interface Builder


I usually create views programmatically. This time, I tried to use Storyboard.

The views in Storyboards cannot be longer than the device Screen. How can I set a scrollview with a content size taller than the device screen in my storyboard?

I also tried to use XIB files instead of a storyboard, but then I didn't manage to link the XIB files to the storyboard.


Solution

  • You can change the simulated size ( you can do it in xib also )

    1-

    enter image description here

    2-

    enter image description here

    3-

    enter image description here

    Tip: if your content is too long you can better think of a UITableView