How to add UIScrollView to Interface builder?

后端 未结 10 2317
夕颜
夕颜 2020-12-12 17:50

I have all my controls laid out in interface builder (many labels, buttons etc). How do I put them all in a scroll view in interface builder so that I can have more space an

10条回答
  •  孤街浪徒
    2020-12-12 18:05

    Its easy:

    First add a scrollview to your view. Change the size of the scrollview (e.g. make it 700 pixels long). Start putting your controls When you want to put/edit controls in the lower (invisble) part, select the scrollview and change the Y-start position to -300. Voila. After editing set the Y-start position back to 0 or whatever it was.

提交回复
热议问题