在我的应用程序中,我从 OnConnect 调用 API,并且无法将密钥对象从 JSon 数据传递到 NSArray 以填充 tableview。
我的断点位于我将 objectAtIndex 传递给 tableview 行的位置。谁能建议我是否正确访问屏幕截图中显示的 JSon 数据。这是我第一次尝试使用 JSon 和 API。
有关详细信息,请参阅下面的代码和 API 响应:
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"
}],