1

再会!我在情节提要中有视图控制器,它的高度超过默认大小并且它不滚动。如何做到这一点?我试图将 uiscrollview 添加到 uiview 但它没有帮助。感谢您的回答=)

4

2 回答 2

1

UIScrollView正是您所需要的,但是只有当contentSize滚动视图的边界大于滚动视图本身的边界时才能滚动。尝试在情节提要中或务实地设置滚动视图的 contentSize。

于 2013-11-03T20:07:35.623 回答
0

found the solution: for correct working scrolling you need ONLY add constraint horizontal and vertical spaces + spaces from top and bottom Layout guide=) stay on scroll view - touch button "Add missing constraints"... after this constraints will be added automatically...=) setting contentSize or frame is not necessary! good luck!

于 2013-11-05T19:22:09.513 回答