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];
精彩评论