New NSMutableDictionary with value from other NSMutableDictionary
I have an NSMutableDictionary with the following values
itemDictionary: {
div = "Photo";
id = "http://www.myurl.com/images/photo.php?category=images";
summary = "Cool pictures";
title = "开发者_如何学编程Photographs";
updated = Z;
}
What is the best way to Create a new dictionary with just the id value.
I will be grateful for any help.
This solution seems pretty clear:
[NSDictionary dictionaryWithObject:[itemDictionary objectForKey:@"id"] forKey:@"id"]
精彩评论