iphone - complex tableview with horizontal and vertical scrolling -
i making complex tableview. should do
- it should have section headers title
- when scroll horizontal whole tableview should scroll horizontal
- you can not scroll in 1 section.
here little screenshot.
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
Post a Comment