iOS应用程序中的TreeView [英] TreeView in iOS application
本文介绍了iOS应用程序中的TreeView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我将为ipad开发一个iOS应用程序。
I'll develop a iOS application for ipad.
我需要在树中表示数据,其中(+)表示扩展元素,( - )表示收缩子元素,并在每个节点前有一个按钮,我该怎么办?
I need to represent data in a tree, with (+) for expand element and (-) for shrinking of subelements, and in front of each node there is a button, how can I do it?
谢谢
推荐答案
Apple 示例项目可能会激励你一点点。实际上,您需要做的就是更改数据模型和单元/标题视图外观(并且您可能只想使用按钮从标题视图中删除 UITapGestureRecognizer
)。
The Apple sample project might inspire you a little. Actually all you need to do is to change the data model and the cell/header views appearance (and you might want to remove UITapGestureRecognizer
from the header views using only the button).
这篇关于iOS应用程序中的TreeView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文