我有一个在 NSLog 中输出的数组:
log: (
{
"case_color" = White;
"case_description" = "";
"case_image" = "http://site.com/get/parts/part_images/nzxtphantom410.jpeg";
"case_name" = "NZXT Phantom 410";
"case_price" = "99.99";
"case_type" = ATX;
id = 1;
}
)
我怎样才能把它放在一个 NSDictionary 中,所以我可以这样称呼它:
NSDictionary *object;
NSString *casename object[@"case_name"];
并且casename等于“NZXT Phantom 410”