how can I count how many itens do I have inside of “bills”?
bills = (
{
id = 1;
name = "Cursus Nibh Venenatis";
value = "875.24";
},
{
id = 2;
name = "Elit Fusce";
value = "254.02";
}
);
I’m counting this way:
NSUInteger keyCount = [resultsDictionary count];
NSLog(@"%i", keyCount);
Thanks!
A naive solution would assume the OP wants to count
bills, which happens to be an array, so the solution would beHowever, if you have a dictionary with more than one object you want to count, then enumerating them all is the only way to go.