水平 UITableView [英] Horizontal UITableView

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

问题描述

我想在我的 ipad 应用程序中实现一个布局,该布局具有一个可左右滚动而不是上下滚动的 uitable 视图:

I want implement a layout in my ipad application that has a uitable view that scrolls left and right rather then up and down :

所以而不是

第 1 行第 2 行第 3 行(垂直滚动)这将是 :第 1 行、第 2 行、第 3 行(水平滚动)

row 1 row 2 row 3 ( scrolling vertically ) It would be : row 1, row2, row 3 (scrolling horizontally )

我已经看到 UItableView 被设计为只做垂直滚动,所以做一个转换不会产生预期的效果.是否有一种标准方法可以利用 uitableview 提供的数据源提供程序来做到这一点?
我基本上想做一些类似于BBC新闻阅读器应用 与可供选择的故事列表有关.

I've seen that UItableView is designed to only do vertical scrolling so doing a transform does not give the desired effect. Is there a standard way to do this taking advantage of a datasource provider like uitableview provides?
I basically want to do somthing similar to what the BBC News reader app on the Ipad does with the list of stories to select from.

谢谢

推荐答案

我发布了示例代码,演示了一种使用变换实现水平滚动表视图的方法.它称为 EasyTableView,为垂直和水平滚动的表格视图提供相同的界面.

I have published sample code that demonstrates one approach for implementing horizontally scrolling table views using transforms. It's called EasyTableView and provides the same interface for both vertically and horizontally scrolling table views.

这篇关于水平 UITableView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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