我只需要问以下问题。假设我有一本字典。
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];