我想从 my 中给出一个键值NSDictionary
并获取与之关联的值。我有这个:
NSArray *plistContent = [NSArray arrayWithContentsOfURL:file];
NSLog(@"array::%@", plistContent);
dict = [plistContent objectAtIndex:indexPath.row];
cell.textLabel.text = [dict objectForKey:@"code"];
与plistContent
:
(
{
code = world;
key = hello;
},
{
code = 456;
key = 123;
},
{
code = 1;
key = yes;
}
)
那么我如何通过给字典“世界”来获得“你好”呢?