dimanche 1 juin 2014

iOS tableView with sections - how to get global index


Vote count:

0




I have question : I created table with multiple sections (they are set from webService response, so they are dynamic). For example, first section have 3 cells (0,1,2), second section - 4 cells (0,1,2,3), third section - 7 cells (0,1,2,3,4,5,6).


When I click, for example, on third cell in third section, I can only get a number in which this cell is (third section), and a number of cell IN CURRENT SECTION (third cell). But I would like to know, no matter which section, what is the cell's number (so, in the above example - third cell in third section, it would be tenth cell)


What to do? how to get that number?



asked 15 secs ago






Aucun commentaire:

Enregistrer un commentaire