Hardik Thakkar
Hardik Thakkar

Reputation: 394

Using UITableView to show matrix kind of data

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'

Upvotes: 0

Views: 293

Answers (2)

Rushi
Rushi

Reputation: 4500

Calendar should not be a part of your UITableView. It should be a separate component. May be a UIScrollView with a background image.

You'll have to create a custom UITableViewCell to create this. In your custom UITableViewCell you'll have to create following things :

  1. Sections.
  2. UILabel which will not scroll and show titles. e.g. 'Oceania'
  3. Then a UIScrollView inside a UITableView. Which will scroll only till your UILabel.

Check the below image :

enter image description here

Upvotes: 2

Rajneesh071
Rajneesh071

Reputation: 31081

You can add UIScrollView in your UITableViewCell

[cell addSubview:yourScrollView];

Upvotes: 1

Related Questions