Answer the question
In order to leave comments, you need to log in
XCode: How to show a TableView demonstrating a data tree. So that you can walk around it like a file system. How about Dropbox on iOS?
How to correctly implement NavigationController and TableView so that you can create trees of infinite nesting.
I have a table with id and parent keys, it needs to generate a display of the Text field from this table in a simple Table View list.
Example:
- Wash the car >
- Go to the store >
- Get a dog
If I click on "Get a dog", you need to display:
<back | "Get a dog" | +add
- Select breed >
- Buy collar
- Learn about clinics >
If I click on "Select breed", display:
<back | «Select breed» | +add
– Chow Chow
– Dalmatian
– Sheepdog
– Bolonka
– Caucasian Shepherd Dog
Please help with an example. I've looked all over the internet and there are no sources anywhere.
Most likely, you need to programmatically create the right Table View, fill it with new values and show it with animation.
But, please note that there can be an infinite number of nestings.
I will be very grateful for the answer.
PS: In Dropbox, folders and files are selected exactly the way I need them.
Answer the question
In order to leave comments, you need to log in
I guess you are interested in this:
developer.apple.com/library/ios/#documentation/UIKit/Reference/UINavigationController_Class/Reference/Reference.html#//apple_ref/occ/cl/UINavigationController
The answer above is exhaustive. You also need to read the UITableView programming guide and the StoryBoards guide to make it easier. Everything is easier than it seems at first glance :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question