Is there a way to give each cell in a grouped tableview an incremental number as its tag?
E.g:
Group 1
- cell 1 (tag = 1)
- cell 2 (tag = 2)
- cell 3 (tag = 3)
Group 2
- cell 1 (tag = 4)
- cell 2 (tag = 5)
Group 3
- cell 1 (tag = 6)
etc…
Any help is greatly appreciated!
This is not possible without querying the datasource for the count of cells that are in previous groups. And you probably don’t want to do that. Doesn’t make sense anyway, because you have to implement proper reuse to get good performance, so tags appear and disappear any time.
So the real question is, why do you want to do this? There is probably a way to achieve the same without adding tags.
But if you really want to: