UITableView和ScrollView中的另一个视图 [英] UITableView and Another View inside ScrollView

查看:63
本文介绍了UITableView和ScrollView中的另一个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 UIScrollView 中有 UITableView UIView (用于显示图片幻灯片).tableview是动态的,我想自动调整表格视图的高度以显示所有单元格(并禁用tableview的滚动),scrollview应该同时显示幻灯片和tableview并可以滚动,我知道如何用代码做到这一点,但我想要以了解是否可以使用xcode大小检查器选项卡中的先前(iOS5和早期版本)autoresize方法在界面"构建器中进行操作(不使用iOS6自动布局)(请参见image )

I have UITableView and UIView(used to show image slideshow) inside UIScrollView. The tableview is dynamic and i want to automatically adjust height of table view to show all the cells(and disable scrolling of tableview) and scrollview should show both slideshow and tableview and could be scrollable, I know how to do this with code but i want to know if is possible to do in Interface builder(without using iOS6 auto layout) using previous(iOS5 and early) autoresize method in the xcode size inspecter tab(see image)

推荐答案

您可以通过界面生成器设置对象.但是要保持滚动条件,您需要以编程方式进行.另外,要使表格视图的高度动态变化,还需要通过编程来完成.

You can set your objects via interface builder. But for maintaing scrolling conditions you need to do it programmatically. Also for table view height to be dynamic you need to be done programmatically.

这篇关于UITableView和ScrollView中的另一个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆