0

enter image description here

Here is the screen shot from Cruise Finder app, I want to implement this kind of UITableView in which every row scrolls horizontally(synchronous) with table view scrolling vertically. I need to show a calendar for which First row showing Jun 2013 remains at fixed position, and all other data scrolls in free form. Every row has a title, which does not scroll horizontally e.g. 'Oceania'

4

2 回答 2

2

日历不应成为您的UITableView. 它应该是一个单独的组件。可能是带有背景图像的 UIScrollView。

您必须创建一个自定义 UITableViewCell 来创建它。在您的自定义 UITableViewCell 中,您必须创建以下内容:

  1. 部分。
  2. UILabel 不会滚动和显示标题。例如“大洋洲”
  3. 然后一个UIScrollView里面一个UITableView。哪个只会滚动到您的UILabel.

检查下图:

在此处输入图像描述

于 2013-02-13T12:36:51.917 回答
1

您可以UIScrollView在您的UITableViewCell

[cell addSubview:yourScrollView];
于 2013-02-13T12:35:17.510 回答