iPhone - UIScrollView 与 Interface Builder
我必须在界面生成器的滚动视图中设置一些对象,例如 UILabel 和 UIImageView 。但是,我该怎么办?我知道这可以通过代码来完成,但对于多语言应用程序来说太烦人了:)
编辑: 我解决问题! 我再次解释并更好地解决了这个问题:我必须使用 Interface Builder 使用 UIScrollView“绘制”我的视图,因为这是管理多语言视图的最简单方法。首先,我们必须在视图中添加 UIScrollView。但在这种情况下,我们无法在高度 > 的点中插入对象。 460.所以,我添加了一个滚动视图,但不在我的视图中,并且我修改了它的高度,现在我可以在任何我想要的地方添加对象。
i have to set some objects like UILabel and UIImageView in my scroll view from Interface Builder. But, how can i do?? I know that this can be done from code, but for a multilanguage app is too annoying :)
EDIT:
I solve the problem!
I explain again and better the problem : i had to "draw" my view with UIScrollView with Interface Builder because is the easiest way to manage multilanguage view. First, we have to add UIScrollView in our view. But in this case we don't be able to insert objects in a point that have height > 460. So, i've added a scroll view, but not in my view and i've modified its height and i now add objects everywhere i want.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试更具体。您遇到了什么问题?一般来说,您需要做的就是在滚动视图中拖放插座(并根据您需要执行的操作,选择将它们绑定到控制器类中可能拥有的 IBOutlet 字段)。
Try to be more specific. What problems did you encounter? Generally all you need to do is to drag&drop your outlets in the scroll view (and optionally bind them to IBOutlet fields you may have in your controller class, according to what you need to do).
我解决了问题!我再次解释并更好地解决了这个问题:我必须使用 Interface Builder 使用 UIScrollView“绘制”我的视图,因为这是管理多语言视图的最简单方法。首先,我们必须在视图中添加 UIScrollView。但在这种情况下,我们无法在高度 > 的点中插入对象。 460.所以,我添加了一个滚动视图,但不在我的视图中,并且我修改了它的高度,现在我可以在任何我想要的地方添加对象。
I solved the problem! I explain again and better the problem : i had to "draw" my view with UIScrollView with Interface Builder because is the easiest way to manage multilanguage view. First, we have to add UIScrollView in our view. But in this case we don't be able to insert objects in a point that have height > 460. So, i've added a scroll view, but not in my view and i've modified its height and i now add objects everywhere i want.