I have a UIScrollView with a rather large amount of controls in it (like a long form or questionnaire).

The controls are static and can be added in IB, but the scroll view itself is not large enough for all the controls (scrolling is necessary, duh!), meaning that I can't see most of my controls in IB and have to align them "blindly".

Is there a way to simulate a scroll offset for a UIScrollView in IB?

有帮助吗?

解决方案 2

You should check out this link, it gives a great explanation on different ways to implement the UIScrollView.

UIScrollView implementation

其他提示

You don't need to, just size your UIScrollView to the size that is needed (it will come off the bottom on the phone screen layout in Xcode) and place the items on it

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top