Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a tree control for the iphone?

Is there a Tree control available for the iphone?

I need to represent a tree with sub nodes in a tree, how can I do it?

Thanks

like image 286
Meir Avatar asked Sep 21 '10 16:09

Meir


2 Answers

No tree widget by default. It's basically not there because you shouldn't really need one and most cases it should probably be avoided.

A table navigation controller is the most common way to navigate down nodes in a hierarchy/tree usually.

It's hard to fit a tree like control we have on our desktops in the touch world where you have huge fingers (so huge nodes) and with the nodes offset to show depth, there isn't much space left over. Adding it to the iOS environment would create a weird UX flow so I would probably rethink my design flow if I think I need one.

If you need to fake it, you can use a table view and offset the left side of each subitem with some padding to show depth.

like image 180
Zac Bowling Avatar answered Sep 23 '22 07:09

Zac Bowling


See this help

Rolling your own iPhone treeview control

part 1 : http://dotnet.kapenilattex.com/?p=566, part 2 and part 3 are in the pages : 585 and 633 part 4 : http://dotnet.kapenilattex.com/?p=648&cpage=1#comment-59842

like image 39
dj. Oum Avatar answered Sep 21 '22 07:09

dj. Oum