Multi level categories with items on all levels in UITableView
问题 I have to create a UITableView using the JSON response below ( Array ). I have no code for this yet but would love some direction to how i would split this array to accommodate categories and items on all levels. { "result":{ "products":[ { "id":"4", "product_code":"PR04", "title":"Product1", "franchisee_id":"118" } ], "categories":[ { "id":"8", "name":"Category1" }, { "id":"20", "name":"Category2", "products":[ { "id":"9", "product_code":"PR07", "title":Product2, "franchisee_id":"118" } ] }