Just for example I have next NSDictionary
{
{
"first_name" = Paul;
"last_name" = Blabla;
online = 0;
},
{
"first_name" = Jess;
"last_name" = BlaBlaBla;
online = 0;
},
}
when I use method [myDictionary objectForKey:@"first_name"] it always returning (null),
my guess is that this is happening because I have more than one parameters that returns.
What can I do to return all “first_name”?
What you’ve shown in your post is an array of dictionaries, not a dictionary (the outer punctuation should be parentheses not curly braces). So, since it’s an array, you have to get which object you’re referring to first with objectAtIndex:, for instance, and then use object:forKey: to get the particular value you want.