我只需要问以下问题。假设我有一本字典。
NSMutableDictionary *xyz=[[NSMutableDictionary alloc] init];
[xyz setValue:@"sagar" forKey:@"s"];
[xyz setValue:@"amit" forKey:@"a"];
[xyz setValue:@"nirav" forKey:@"n"];
[xyz setValue:@"abhishek" forKey:@"a"];
[xyz setValue:@"xrox" forKey:@"x"];
现在,我需要检查如下
[xyz 确实包含键“b”值??配对与否?
问题是如何?
另一个问题是如何计算总键值对?
比如说NSInteger mCount=[xyz keyCounts];