I have a NSArray looking like:
[{@"firstName":@"abc", @"lastName":@"ABC"},
...
{@"firstName":@"xyz", @"lastName":@"XYZ"}]
I want to get the dictionary element in which lastName=XYZ, that is, the array element:
{@"firstName":@"xyz", @"lastName":@"XYZ"}
is there an easy way to get it without a lot of loops? Thanks.