I have a JSON request getting this:
bills = (
{
id = 1;
name = "Cursus Nibh Venenatis";
value = "875.24";
},
{
id = 2;
name = "Elit Fusce";
value = "254.02";
}
);
I’m creating a NSDictionary for it.
I’m using JSONKit and I wanna know how can I populate my UITableView with this values? Thanks for any help!
EDIT
NSLog(@"my dictionary = %@", resultsDictionary);
my dictionary = {
bills = (
{
id = 1;
name = "Cursus Nibh Venenatis";
value = "875.24";
},
{
id = 2;
name = "Elit Fusce";
value = "254.02";
}
);
}
It seems like In the result dictionary, you are having an Array. Where each object in your Array is a dictionary. Tryout the following code.
give
[[billsArray objectAtIndex:indexPath.row] objectForKey:@"name"]in your tableView datasource methodtableView: cellForRowAtIndexPath: