垂直和水平滚动的桌面视图
我在我的 uiview 中显示一个大表格...问题是我也需要水平滚动这个表格视图。
我尝试将桌面视图放置在滚动视图中。
使滚动视图连接到视图出口并将表格连接到 tablview 伊布莱特
使滚动视图大小(320,460)和uitableviews大小(1000,460)
但我无法水平滚动表格。是否有更好的方法来完成此操作(即显示宽度约为 1000 的宽表格)。
i am displaying a large table in my uiview ...the problem is i need to scroll this tableview horizontally also.
i tried to place the tableview in a scroll view.
made the scrollview connected to the view outlet and connected the table to a tablview
iboutletmade the scroll views size (320,460) and uitableviews size (1000,460)
but i am not able to scroll the table horizontally.is there a better way to accomplish this(ie display a wide table of width around 1000).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通过代码设置 UIScrollView contentSize 属性,并确保 UIScrollView contentSize 属性具有相同的高度,但宽度比 tableView 更大。
set the UIScrollView contentSize property through code and make sure that UIScrollView contentSize property will have the same height but it would have a greater width than tableView.
请参阅下面的链接
UITableView 垂直和水平滚动
See Same At below Link
UITableView scroll both vertically and horizontally