I have an array with a text field being a category
["id", "cat", "item_name"]:
["1", "cat1", "Something"]
["2", "cat2", "Something"]
["3", "cat1", "Something"]
["4", "cat1", "Something"]
["6", "cat1", "Something"]
["7", "cat2", "Something"]
["8", "cat2", "Something"]
["9", "cat2", "Something"]
To be able to use the category in UITableView sections I need to split up the array into smaller arrays - right.
So I need to have:
dic["cat1"][array of items with cat1 in field]()
dic["cat2"][array of items with cat2 in field]()
How would you go about doing that?