[dictionary keyEnumerator]
を使う。
NSDictionary *dictionary = [NSDictionary dictionaryWithObject:@"hoge" forKey:@"fuga"];
for (id key in [dictionary keyEnumerator]) {
NSLog(@"Key:%@ Value:%@", key, [dictionary valueForKey:key]);
}
Go to list of users who liked
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]);
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked