在 iPad 中实现树结构

发布于 2024-10-05 07:50:59 字数 38 浏览 0 评论 0原文

如何在iPad中实现树形结构,树形结构包含父级和子级。子节点。

How to implement a tree structure in iPad, tree structure which contain parent & child nodes.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

羁绊已千年 2024-10-12 07:50:59

您应该使用 tableview 来执行此操作。

设置单元格 indentationLevel 属性来表示树结构。而且,如果您编写代码来操纵单元高度(可以设置为零),则可以展开/折叠“树枝”。

或者尝试使用带有 UINavigation 控制器的 UITableview。

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.

貪欢 2024-10-12 07:50:59

执行此操作的苹果方法是钻取一个新列表,留下一个返回其父级的按钮。这是通过 UINavigationController 完成的。如果您对缩进死心塌地,那么正如 KingofBliss 所说,更改单元格缩进级别

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文