开发者

Not getting correct count of NSMutableDictionary

开发者 https://www.devze.com 2023-03-08 10:48 出处:网络
I could not able to get the actual count of object after setting it to the dictionary. Iam having a structure pointer pEvent which i have put up in myData(NSData object).and I am storing this NSData i

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

精彩评论

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

关注公众号