Creating a large scrolling view in Interface Build

2019-04-15 04:25发布

问题:

I want to create a large view that will contain about 10-20 fields (slides, datepicker, textfields), all aligned one under the other. I'm on Interface Builder and I've placed a UIScrollView and on top of that added some fields. But I can't add any more fields that are not visible in the current window.

So, how do I go about to add more fields inside that ScrollView?

回答1:

Grab the uiscrollview with your mouse and drag it up and the part that you cant see will be visible to you window. And so on and so on. Be sure its size is bigger than your view



回答2:

Set the Simulated Size to Freeform and put large numbers in the height and width.



回答3:

You can also use your mouse scroll wheel anywhere in the tableview window to scroll up/down