垂直和水平滚动的桌面视图

发布于 2025-01-05 04:42:45 字数 241 浏览 7 评论 0原文

我在我的 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
    iboutlet

    made 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

伴梦长久 2025-01-12 04:42:45

通过代码设置 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文