- (NSUInteger)count
Returns the number of entries in a dictionary.
Return Value - NSUInteger
// ** Init dictionary with entries NSDictionary *myDictionary = [[NSDictionary alloc]initWithObjectsAndKeys:@"value1", @"key1", @"value2", @"key2", nil]; int count = myDictionary.count; // ** Output dictionary count NSLog(@"myDictionary count: %i", myDictionary.count);
2014-06-08 01:23:01.080 NSDictionary[3367:70b] myDictionary count: 2