我应该如何构建我的.plist数组和字典? [英] How should I structure my .plist array and dictionary?

查看:116
本文介绍了我应该如何构建我的.plist数组和字典?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有UITableView,它有几个子UITableViews,每个孩子也可能有1个或2个孩子。

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

我想创建一个plist来跟踪和构建所有单元格名称和东西。

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?

推荐答案

您可能需要一个字典数组,其中每个数组代表一行,字典包含有关的信息单元格,可能还有子表视图。考虑对设置包 plist格式。

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.

这篇关于我应该如何构建我的.plist数组和字典?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆