ios - Multidimensional Arrays and UITableView -
how go parsing through json in order populate uitableview's label information in second dimension of array? should consider restructuring json? current structure of json.
"1": { "0": { "title": "unit 721", "price": 750, "pricetype": 13, "sqftindividual": 600 }, "1": { "title": "unit 801", "price": 2330, "pricetype": 13, "sqftindividual": 900 }, "2": { "title": "unit 1", "price": 9000, "pricetype": 13, "sqftindividual": 1200 } }, "2": { "parking": 1, "reception": 1, "conferencerooms": 1, "kitchens": 0, "bathrooms": 1, "elevator": 1 }
the short answer? "it depends."
a 2-dimensional array natural data structure sectioned table view. outer dimension sections, , inner dimension rows. use section number index outer array, , row number index inner array.
if that's not presentation want need decide want instead. inform decision on how map data structure table view.
Comments
Post a Comment