Unrecognized selector sent to instance, Working with Json Data & OnConnect
API
In my app, I am calling API from OnConnect and I am having trouble passing
key object from JSon data to NSArray to populate tableview.
My breakpoint come to where I pass objectAtIndex to tableview row. Can
anyone please suggest me whether I am accessing JSon data shown in the
screenshot properly. This is my first try with JSon and API.
Please see my code and API response below for details:
cell.textLabel.text = [[movieslist objectAtIndex:indexPath.row]
objectForKey:@"startTime"];
-[__NSCFDictionary objectAtIndex:]: unrecognized selector sent to instance
0xd673bb0
[{ "startTime": "2013-08-18T12:10Z", "endTime": "2013-08-18T14:35Z",
"duration": 145, "ratings": [{ "body": "Motion Picture Association of
America", "code": "PG" }],
No comments:
Post a Comment