开发者

Not getting correct count of NSMutableDictionary

I could not able to get the actual count of object after setting it to the dictionary. I am having a structure pointer pEvent which i have put up in myData(NSData object).and I am storing this NSData into the dictionary.

[m_cAppIdMap setObject:myData forKey:[NSNumber num开发者_运维百科berWithUnsignedShort:wTimerIds]];
int no = [m_cAppIdMap count];
NSLog(@"The no of entries in array is:%d",no);


Use int no = [m_cAppIdMap.allKeys count];

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜