Viewing hierarchy in iOS

守給你的承諾、 提交于 2019-12-13 17:20:05

问题


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.


回答1:


Not much. Table views support sections and rows, which gives you 2 levels.

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.

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.



来源:https://stackoverflow.com/questions/18925201/viewing-hierarchy-in-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!