如何計算我在「賬單」裏面有多少itens?NSDictionary Count
bills = (
{
id = 1;
name = "Cursus Nibh Venenatis";
value = "875.24";
},
{
id = 2;
name = "Elit Fusce";
value = "254.02";
}
);
我指望這樣:
NSUInteger keyCount = [resultsDictionary count];
NSLog(@"%i", keyCount);
謝謝!在字典中
如果你想獲得所有項目
你現在這樣做的方式有什麼問題? – trojanfoe 2012-07-31 13:39:32
確切的說,我認爲你正在寫計數到NSLog,是不是你想要的? – dotnetcoder 2012-07-31 13:42:51
按預期返回1而不是2。 – 2012-07-31 14:14:00