void describeDictionary (NSDictionary *dict)
{
NSArray *keys;
int i, count;
id key, value;
keys = [dict allKeys];
count = [keys count];
for (i = 0; i < count; i++)
{
key = [keys objectAtIndex: i];
value = [dict objectForKey: key];
NSLog (@"Key: %@ for value: %@", key, value);
}
}
NSEnumerator *enumerator = [requestData objectEnumerator];
id key;
while ((key = [enumerator nextObject])) {
NSLog(@"Key:%@,Value:%@",key,[requestData objectForKey:key]);
}
NSDictionary遍历
最新推荐文章于 2018-02-26 08:46:09 发布