在iOS中查看层次结构 [英] Viewing hierarchy in iOS
问题描述
在iOS中查看层次结构有哪些选择?在OSX中,我可以选择使用NSOutlineView
.理想情况下,我应该至少能够支持3个级别.
What are my options for viewing hierarchies in iOS? In OSX I have the option of using NSOutlineView
. Ideally I should be able to support at least 3 levels.
推荐答案
不多.表格视图支持部分和行,为您提供2级.
Not much. Table views support sections and rows, which gives you 2 levels.
您可以使用UICollectionView并滚动自己的数据层次结构,但我认为iOS中没有等效于NSOutlineView的东西. UI元素是专为手机上的小屏幕而设计的,在该屏幕上,您实际上没有足够的空间来呈现多个级别的数据.苹果增加了一些额外的控件,例如iPad的拆分视图控制器,但实际上不是轮廓查看器.
You could use a UICollectionView and roll your own hierarchy of data, but I don't think there is an equivalent to NSOutlineView in iOS. The UI Elements are designed for the small screen on a phone, where you don't really have enough space to present multiple levels of data. Apple added a few extra controls like a split view controller for iPad, but not really an outline viewer.
iOS上的标准是使用多个级别的主视图/详细视图.您从顶层逐项向下钻取,直到找到所需的详细信息.
The norm on iOS is to use multiple levels of master/detail views. You drill down from the top level item by item until you get to the detail you're looking for.
这篇关于在iOS中查看层次结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!