Hi,
I am writing an app that allows people to add entries to a tableview and then add detail to to each element of the table view, for example
item1
data1
data2
item2
data1
data2
I plan to write this out to a JSON file (and read back in on load) but I was wondering what the best method to store this in memory, ie.
Should I create a table variable and as they add each tableview row, add a new table to the table and store the data1, data2 etc into that new table so…
items = {}
items[1].data = {}
items[1].data[1] = data1
items[1].data[2] = data2
items[2].data = {}
items[2].data[1] = data1
items[2].data[2] = data2
So build that structure in real time then dump the table to a JSON file?
Thanks for your help!