Moving to an iOS node sheet in a TableView tree structure

I am stuck at the point where I want to remove a specific Row object from the table, but This dynamic tree structure means that the object can be created, deleted, reordered, etc. anytime using all Tabular methods.

The tree structure is dynamic, therefore, to reach the sheet object OR an intermediate object that needs to be deleted.   Trace in all branches as well .

There can be any number of nodes, child nodes, parent nodes. But I need to go through all the nodes to all the Leaf nodes .

So my question is: delete any node?

If you have ideas, suggestions on this issue so that your decisions are made.

Thanks at Advance.

An example of a tree as shown below:

enter image description here

+4
source share
1 answer

Add TapGestureto tableviewCell, after which you will get a response point to find out indexPathcurrentCell.

Accordingly, you can easily find out the current cell that you have selected.

Let me know if you need it in more detail.

0
source

Source: https://habr.com/ru/post/1534807/


All Articles