本文介绍了如何在故事板中设计UIScrollView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个 UIScrollView
,其中嵌入了 UIView
。 UIView
设置为垂直高度为1000.此外,还有一个水平居中的按钮,设置为距离<$ c的底边20个单位$ C>的UIView 。一切都按预期工作,但我无法在故事板中设计这样的场景。见下面的截图。屏幕尺寸外的内容不可见 - 如何查看/滚动视图
I have a UIScrollView
that has an embedded UIView
within it. The UIView
is set to have a vertical height of 1000. Further, there is a button that is centered horizontally and set to have be 20 units from the bottom edge of UIView
. Everything works as expected but I am unable to design in storyboard for such a scenario. See screenshot below. The contents outside the screensize are not visible - how does one see / scroll the view into place
提前致谢。
推荐答案
在故事板中:
- 选择ViewController
- 将
模拟大小
设置为freeform
和身高1000
。
- Select the ViewController
- Set its
Simulated Size
tofreeform
and height to1000
.
这篇关于如何在故事板中设计UIScrollView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!