OK, this is a bit obscure, but it's giving me a headache.
If you have an array of strings
{@"1", @"2", @"4"}
And you have a array of Recipe objects
{ {recipe_name:@"Lasagna", recipe_id:@"1"}
{recipe_name:@"Burger", recipe_id:@"2"}
{recipe_name:@"Pasta", recipe_id:@"3"}
{recipe_name:@"Roast Chicken", recipe_id:@"4"}
{recipe_name:@"Sauerkraut", recipe_id:@"5"}
}
How would I, using the first array, create an array like this:
{@"Lasagna", @"Burger", @"Roast Chicken"}
In ither words, it is taking the numbers in the first array and creating an array of recipe_names where the recipe_id matches the numbers...