Good day! What are the ways to display the tree menu? Only root elements come from the server, children only get a request by the parent's id. To form a tree on the server right away will not work, a very large amount. Can anyone advise an example?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer by the participants Max Mikheyenko , aleksandr barakin , user194374, Streletz , Grundy 3 Jul '16 at 6:51 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    Can I display one level? Then a simple table will do. Clicked on the child element - loaded the data, saved, updated the table. Clicked on the top element - moved to the parent.

    If you need to load everything at once, you load the main element, and then recursively load the children. I downloaded everything - I displayed it in this form:

    https://stackoverflow.com/questions/32219982/how-to-create-expandable-table-view-like-tree-structure-in-ios

    https://stackoverflow.com/questions/12520533/multi-level-tree-uitableview-in-ios