my data structure like the following
root
--- element A
--- --- sub element A
--- --- sub element B
--- --- sub element C
--- element B
--- --- sub element A
--- --- sub element B
--- --- sub element C
however indexPath.row at root level always return 0, it works normally on sub element level,
then I have same element at the beginning in all rows.
The data display like below actually
root
--- element A
--- --- sub element A
--- --- sub element B
--- --- sub element C
--- element A
--- --- sub element A
--- --- sub element B
--- --- sub element C
I checked numberOfRowsInSection function are counting element correctly
How can I solve this problem?
my data structure like the following root --- element A --- --- sub element A --- --- sub element B --- --- sub element C --- element B --- --- sub element A --- --- sub element B --- --- sub element C
however indexPath.row at root level always return 0, it works normally on sub element level, then I have same element at the beginning in all rows. The data display like below actually
root --- element A --- --- sub element A --- --- sub element B --- --- sub element C --- element A --- --- sub element A --- --- sub element B --- --- sub element C
I checked numberOfRowsInSection function are counting element correctly How can I solve this problem?