How to implem开发者_如何学运维ent a tree structure in iPad, tree structure which contain parent & child nodes.
You should use tableview for doing this.
Setting the cell indentationLevel property to denote the tree structure. And, it's possible to expand/collapse "tree branches" if you write code to manipulate the cell heights (can be set to zero).
Or else try using a UITableview with UINavigation controller instead.
The apple-y way of doing this is to drill into a new list leaving a button to go back to its parent. This is done through UINavigationController
. If your dead-set on indenting then as KingofBliss says change the cell indentationLevel
精彩评论