简体   繁体   English

如何在iPhone上使用“界面生成器”使滚动功能起作用?

[英]How make scrolling function with Interface builder on the iPhone?

I wonder how is possible to make a view scroll, like in a table view. 我想知道如何像表视图一样使视图滚动。

I have a form that have several fields on it. 我有一个表格,上面有几个字段。 I don't wanna buil it as a traditional table that drill-down. 我不想将其构建为可向下钻取的传统桌子。

Is not very large but because the main windows is a tab-bar I lack of a bit of vertical space. 不是很大,但是因为主窗口是选项卡栏,所以我缺少一些垂直空间。 Also, when I try to fill a textfield get covered by the keywoard and I want that the focus move to the field and the view scrool, like in the safari way. 另外,当我尝试填充文本字段时,它会被键区覆盖,并且我希望将焦点移到该字段和scrool视图,就像使用safari一样。

Select the main form view in Interface Builder and choose Layout > Embed Objects in > Scroll View from the menu. 在Interface Builder中选择主窗体视图,然后从菜单中选择Layout> Embed Objects in> Scroll View。 You may have to adjust some connections to make everything work. 您可能需要调整一些连接才能使所有功能正常工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM