How should I structure my .plist array and diction

2019-03-05 08:42发布

问题:

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.