iphone - complex tableview with horizontal and vertical scrolling -


i making complex tableview. should do

  1. it should have section headers title
  2. when scroll horizontal whole tableview should scroll horizontal
  3. you can not scroll in 1 section.

here little screenshot.

enter image description here

now question is, how can this?

since not familiar uicollectionviews, try following:

1. create uiscrollview, set frame backgroundview.frame , add backgroundview

2. create uitableview. guess content dynamic, should possible calculate maximum width summing width of elements in each section / row. make tableview.size.width calculated width, add tableview scrollview.

3. set scrollview.contentsize.width calculated tableview.size.width.

if understood question correctly, should have uitablview can scrolled horizontally , vertically. let me know if helped.

edit:

i created simple project doing described above. until now, datasource array of texts. should no big deal use array of e.g. custom uiviews add cell.contentviews.

it seems work. feel free test it: click here


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -