ios - how to configure this to be rendered in a UITableView or should this be done in multiple UITableView's -
i don't use uitableviews need in case. have complex menu object. has headers , items, (imagine rails acts_as_tree menuheaders array can arbitrarily deep there 3 abstractios: menu, menuheaders array can nested, , menuitems array):
menu \menuheaders array menuheader - name="service" \menuheaders[] \menuitems \menuitem="transmission fix" \menuitem="replace gaskets" menuheader - name="specials" \menuheaders \menuheader -name="tires" \menuitem - special tire \menuitem - veryspecial tire \menuitems \menuitem - name="oil change" \menuitem - name="windows clean" output in table:
service transmission fix replace gaskets specials tires special tire veryspecial tire oil change windows clean i not sure if should structure signle uitableview or whether each sub-array should own uitableview or how iterate on each element? seems cellforrowatindexpath can handle either single arrays or 2d arrays not is. how structure this?
when render in jquery like
rendermenheader(menuheader) if(menuheader.menuitems){ for(mi in menuheader.menuitems){ rendermenuitem(mi) } } if(menuheader.menuheaders){ for(mh in menuheader.menuheaders){ rendermenuheader(mh) } } but not sure how map uitableview abstraction. in honest, rather jsut keep these separate uiview's 300-500 units need ability handle processing of visible elements. if there workaroudn handling in generic uiview's of interest.
thx
Comments
Post a Comment