I have this JSON file (the parsing OK, the problem is displaying the contents as I’ll describe here) that I need to display in separate UITableViews:
{
"Programs": [
{"link1": "http://www.myWebSite1.aspx",
"program name": "Live Show at 9",
"speaker": "Dr. Speaker 1"
"day1": "Sunday"
"day2": "Monday"
"day3": "Tuesday"},
{"link2": "http://www.myWebSite2.aspx",
"name": "Dr. Speaker 2",
"speaker": "Live Show at 10"
"day1": "Sunday"
"day2": "Monday"
"day3": "Tuesday"
"day4": "Wednesday"}
]
}
The user will make his first choice based on the program/speaker, then a second UITableView should pop-up presenting the days of the week for him to choose from. So, this second UITableView will display the contents of day1, day2, day3, etc…
How can I make such a subdivision, with the contents of this JSON file? Thank you!
You need to declare
jsonArrayofNSDictionaryin newUITableViewController class and then synthesize it. Fill up that array and newUITableViewpass this array incellForRowAtIndexPath. For more details go through the link (for just idea)http://gauravstomar.blogspot.com/2010/06/uitableviewcell-tableviewuitableview.html