Create Tree like strucure in iPhone

ios, ios7, iphone, tree, xcode

Solution

There is a project on github called PSTreeGraph made by Ed Preston

https://github.com/epreston/PSTreeGraph

Author says that it is for iPad but work also on iPhone, simply by changing the device to iPhone in xcode "deployment info"

In addition, it's interactive.

EDIT

Possibility to add node "manually":

In `PSHTreeGraphViewController.m`

you have an entry point `[self setRootClassName:@"UIControl"];`

here you can check how to create the tree.

That project also gives you data model : `ObjCClassWrapper`

And finally there is a method (delegate)

-(void) configureNodeView:(UIView *)nodeView
            withModelNode:(id <PSTreeGraphModelNode> )modelNode

called on a node tap.

Everything to create a custom interactive tree!

Problem

I need to represent my data like a Tree structure in UI.How can I create a view like this in iPhone? Is there any default items for this in `object library` ? If no how can I manually implement this?

Original source