水平UITableView [英] Horizontal UITableView

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

问题描述

我希望在我的ipad应用程序中实现一个布局,它有一个非常适合的视图,可以向左和向右滚动,而不是向上和向下滚动:

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天全站免登陆