开发者

Implementing Tree structures in IPad

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜