I
I
imater2012-09-18 21:02:49
Objective-C
imater, 2012-09-18 21:02:49

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.
dropbox-ios.jpg

Answer the question

In order to leave comments, you need to log in

5 answer(s)
B
bobermaniac, 2012-09-19
@bobermaniac

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

R
Ruslan Fedorov, 2012-09-19
@aspcartman

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 :)

I
imater, 2012-09-19
@imater

Here I found what I was looking for: github.com/Inferis/ViewDeck
I'll figure it out. If anyone has more examples, I will be glad.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question