How should I structure my .plist array and dictionary?

心已入冬 提交于 2019-12-02 21:01:16

问题


I have UITableView that will have several child UITableViews which may also have 1 or 2 childs each.

I want to create a plist to keep track and structure all the cell names and stuff.

Man view -> Child -> Child -> Child -> Detail

What is the best way to structure this? Array or Dictionary?


回答1:


You will probably want an array of dictionaries, where each array represents a row and the dictionary contains info about the cell, and potentially the child table views. Consider modeling this off the settings bundle plist format.



来源:https://stackoverflow.com/questions/7003748/how-should-i-structure-my-plist-array-and-dictionary

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