Objective-C

NSDictionaryの中身を全部取り出すときは

More than 5 years have passed since last update.

[dictionary keyEnumerator]を使う。

NSDictionary *dictionary = [NSDictionary dictionaryWithObject:@"hoge" forKey:@"fuga"];
for (id key in [dictionary keyEnumerator]) {
    NSLog(@"Key:%@ Value:%@", key, [dictionary valueForKey:key]);
}